OctahedralProjectionFS.js 465 B

12345678910111213141516
  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 rgba = textureCube(cubeMap, v_cubeMapCoordinates);\n\
  8. #ifdef RGBA_NORMALIZED\n\
  9. gl_FragColor = vec4(rgba.rgb, 1.0);\n\
  10. #else\n\
  11. float m = rgba.a * 16.0;\n\
  12. vec3 r = rgba.rgb * m;\n\
  13. gl_FragColor = vec4(r * r, 1.0);\n\
  14. #endif\n\
  15. }\n\
  16. ";