vue-cesium
Version:
Vue 3.x components for CesiumJS.
3 lines (2 loc) • 551 B
TypeScript
declare const text = "\nuniform sampler2D currentParticlesPosition; // (lon, lat, lev)\nuniform sampler2D particlesSpeed; // (u, v, w, norm) Unit converted to degrees of longitude and latitude\n\nin vec2 v_textureCoordinates;\n\nvoid main() {\n // texture coordinate must be normalized\n vec3 lonLatLev = texture(currentParticlesPosition, v_textureCoordinates).rgb;\n vec3 speed = texture(particlesSpeed, v_textureCoordinates).rgb;\n vec3 nextParticle = lonLatLev + speed;\n\n out_FragColor = vec4(nextParticle, 0.0);\n}\n";
export default text;