vue-cesium
Version:
Vue 3.x components for CesiumJS.
1 lines • 1.1 kB
Source Map (JSON)
{"version":3,"file":"screenDraw.frag.mjs","sources":["../../../../../../../packages/components/overlays/wind/glsl/screenDraw.frag.ts"],"sourcesContent":["/*\n * @Author: zouyaoji@https://github.com/zouyaoji\n * @Date: 2021-10-28 09:20:11\n * @LastEditTime: 2023-06-12 18:10:22\n * @LastEditors: zouyaoji 370681295@qq.com\n * @Description:\n * @FilePath: \\vue-cesium@next\\packages\\components\\overlays\\wind\\glsl\\screenDraw.frag.ts\n */\nconst text = `\nuniform sampler2D trailsColorTexture;\nuniform sampler2D trailsDepthTexture;\n\nin vec2 textureCoordinate;\n\nvoid main() {\n vec4 trailsColor = texture(trailsColorTexture, textureCoordinate);\n float trailsDepth = texture(trailsDepthTexture, textureCoordinate).r;\n float globeDepth = czm_unpackDepth(texture(czm_globeDepthTexture, textureCoordinate));\n\n if (trailsDepth < globeDepth) {\n out_FragColor = trailsColor;\n } else {\n out_FragColor = vec4(0.0);\n }\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;AAAA;AAAA;AAAA;;;;"}