vue-cesium-jyt
Version:
Vue 3.x components for CesiumJS.
23 lines (16 loc) • 671 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
const text = `
uniform sampler2D currentParticlesPosition; // (lon, lat, lev)
uniform sampler2D particlesSpeed; // (u, v, w, norm) Unit converted to degrees of longitude and latitude
varying vec2 v_textureCoordinates;
void main() {
// texture coordinate must be normalized
vec3 lonLatLev = texture2D(currentParticlesPosition, v_textureCoordinates).rgb;
vec3 speed = texture2D(particlesSpeed, v_textureCoordinates).rgb;
vec3 nextParticle = lonLatLev + speed;
gl_FragColor = vec4(nextParticle, 0.0);
}
`;
exports["default"] = text;
//# sourceMappingURL=updatePosition.frag.js.map