vue-cesium
Version:
Vue 3.x components for CesiumJS.
3 lines (2 loc) • 529 B
TypeScript
declare const 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";
export default text;