OctahedralProjectionFS.js 465 Bytes
Newer Older
Manggar Mahardhika's avatar
Manggar Mahardhika committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//This file is automatically rebuilt by the Cesium build process.
export default "varying vec3 v_cubeMapCoordinates;\n\
uniform samplerCube cubeMap;\n\
\n\
void main()\n\
{\n\
    vec4 rgba = textureCube(cubeMap, v_cubeMapCoordinates);\n\
    #ifdef RGBA_NORMALIZED\n\
        gl_FragColor = vec4(rgba.rgb, 1.0);\n\
    #else\n\
        float m = rgba.a * 16.0;\n\
        vec3 r = rgba.rgb * m;\n\
        gl_FragColor = vec4(r * r, 1.0);\n\
    #endif\n\
}\n\
";