All files / engine/Source/Shaders/Builtin/Functions shadowDepthCompare.js

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27                                                     
//This file is automatically rebuilt by the Cesium build process.
export default "\n\
float czm_sampleShadowMap(highp samplerCube shadowMap, vec3 d)\n\
{\n\
    return czm_unpackDepth(czm_textureCube(shadowMap, d));\n\
}\n\
\n\
float czm_sampleShadowMap(highp sampler2D shadowMap, vec2 uv)\n\
{\n\
#ifdef USE_SHADOW_DEPTH_TEXTURE\n\
    return texture(shadowMap, uv).r;\n\
#else\n\
    return czm_unpackDepth(texture(shadowMap, uv));\n\
#endif\n\
}\n\
\n\
float czm_shadowDepthCompare(samplerCube shadowMap, vec3 uv, float depth)\n\
{\n\
    return step(depth, czm_sampleShadowMap(shadowMap, uv));\n\
}\n\
\n\
float czm_shadowDepthCompare(sampler2D shadowMap, vec2 uv, float depth)\n\
{\n\
    return step(depth, czm_sampleShadowMap(shadowMap, uv));\n\
}\n\
";