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

5 lines
134 B
GLSL

float czm_readDepth(sampler2D depthTexture, vec2 texCoords)
{
return czm_reverseLogDepth(texture2D(depthTexture, texCoords).r);
}