DSDSWeb/static/js/Cesium-1.53/Source/Shaders/Builtin/Functions/readDepth.glsl

5 lines
134 B
Plaintext
Raw Normal View History

2024-07-11 18:02:47 +08:00
float czm_readDepth(sampler2D depthTexture, vec2 texCoords)
{
return czm_reverseLogDepth(texture2D(depthTexture, texCoords).r);
}