DSDSWeb/static/js/Cesium-1.53/Source/Shaders/OctahedralProjectionFS.glsl

11 lines
234 B
Plaintext
Raw Normal View History

2024-07-11 18:02:47 +08:00
varying vec3 v_cubeMapCoordinates;
uniform samplerCube cubeMap;
void main()
{
vec4 rgbm = textureCube(cubeMap, v_cubeMapCoordinates);
float m = rgbm.a * 16.0;
vec3 r = rgbm.rgb * m;
gl_FragColor = vec4(r * r, 1.0);
}