alphaWeight.js 331 B

1234567
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "float czm_alphaWeight(float a)\n\
  3. {\n\
  4. float z = (gl_FragCoord.z - czm_viewportTransformation[3][2]) / czm_viewportTransformation[2][2];\n\
  5. return pow(a + 0.01, 4.0) + max(1e-2, min(3.0 * 1e3, 0.003 / (1e-5 + pow(abs(z) / 200.0, 4.0))));\n\
  6. }\n\
  7. ";