Newer
Older
casic-smartcity-well-front / static / Cesium / Shaders / OctahedralProjectionFS.glsl
[wangxitong] on 8 Jul 2021 234 bytes mars3d总览
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);
}