OctahedralProjectionFS.js 329 B

1234567891011
  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. void main()\n\
  5. {\n\
  6. vec4 rgbm = textureCube(cubeMap, v_cubeMapCoordinates);\n\
  7. float m = rgbm.a * 16.0;\n\
  8. vec3 r = rgbm.rgb * m;\n\
  9. gl_FragColor = vec4(r * r, 1.0);\n\
  10. }\n\
  11. ";