12345678910111213141516 |
- //This file is automatically rebuilt by the Cesium build process.
- export default "in vec3 v_cubeMapCoordinates;\n\
- uniform samplerCube cubeMap;\n\
- \n\
- void main()\n\
- {\n\
- vec4 rgba = czm_textureCube(cubeMap, v_cubeMapCoordinates);\n\
- #ifdef RGBA_NORMALIZED\n\
- out_FragColor = vec4(rgba.rgb, 1.0);\n\
- #else\n\
- float m = rgba.a * 16.0;\n\
- vec3 r = rgba.rgb * m;\n\
- out_FragColor = vec4(r * r, 1.0);\n\
- #endif\n\
- }\n\
- ";
|