OctahedralProjectionFS.js 349 B

123456789101112
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "varying vec3 v_cubeMapCoordinates;\n\
  3. uniform samplerCube cubeMap;\n\
  4. \n\
  5. void main()\n\
  6. {\n\
  7. vec4 rgbm = textureCube(cubeMap, v_cubeMapCoordinates);\n\
  8. float m = rgbm.a * 16.0;\n\
  9. vec3 r = rgbm.rgb * m;\n\
  10. gl_FragColor = vec4(r * r, 1.0);\n\
  11. }\n\
  12. ";