yzt
2023-05-26 de4278af2fd46705a40bac58ec01122db6b7f3d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//This file is automatically rebuilt by the Cesium build process.
export default "uniform sampler2D colorTexture;\n\
uniform sampler2D colorTexture2;\n\
\n\
uniform vec2 center;\n\
uniform float radius;\n\
\n\
varying vec2 v_textureCoordinates;\n\
\n\
void main()\n\
{\n\
    vec4 color0 = texture2D(colorTexture, v_textureCoordinates);\n\
    vec4 color1 = texture2D(colorTexture2, v_textureCoordinates);\n\
\n\
    float x = length(gl_FragCoord.xy - center) / radius;\n\
    float t = smoothstep(0.5, 0.8, x);\n\
    gl_FragColor = mix(color0 + color1, color1, t);\n\
}\n\
";