UNPKG

vue-cesium

Version:
1 lines 1.1 kB
{"version":3,"file":"updatePosition.frag.mjs","sources":["../../../../../../../packages/components/overlays/wind/glsl/updatePosition.frag.ts"],"sourcesContent":["/*\n * @Author: zouyaoji@https://github.com/zouyaoji\n * @Date: 2021-10-28 09:20:11\n * @LastEditTime: 2021-10-28 10:05:45\n * @LastEditors: zouyaoji\n * @Description:\n * @FilePath: \\vue-cesium@next\\packages\\components\\overlays\\wind\\glsl\\updatePosition.ts\n */\nconst 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`\nexport default text\n"],"names":[],"mappings":";AAQA,MAAM,IAAO,GAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;"}