34935-vm/assets/cesium/packages/engine/Source/Shaders/OctahedralProjectionFS.js
Flatlogic Bot 055d24df95 WORKING
2025-10-14 02:37:44 +00:00

17 lines
466 B
JavaScript

//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\
";