UNPKG

vue-cesium-jyt

Version:
19 lines (14 loc) 594 B
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); } `; export { text as default }; //# sourceMappingURL=updatePosition.frag.mjs.map