cascadeWeights.js 412 B

123456789101112
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "\n\
  3. uniform vec4 shadowMap_cascadeSplits[2];\n\
  4. \n\
  5. vec4 czm_cascadeWeights(float depthEye)\n\
  6. {\n\
  7. // One component is set to 1.0 and all others set to 0.0.\n\
  8. vec4 near = step(shadowMap_cascadeSplits[0], vec4(depthEye));\n\
  9. vec4 far = step(depthEye, shadowMap_cascadeSplits[1]);\n\
  10. return near * far;\n\
  11. }\n\
  12. ";