15832144755
2022-01-06 7b4c8991dca9cf2a809a95e239d144697d3afb56
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
uniform sampler2D colorTexture;
uniform sampler2D colorTexture2;
 
uniform vec2 center;
uniform float radius;
 
varying vec2 v_textureCoordinates;
 
void main()
{
    vec4 color0 = texture2D(colorTexture, v_textureCoordinates);
    vec4 color1 = texture2D(colorTexture2, v_textureCoordinates);
 
    float x = length(gl_FragCoord.xy - center) / radius;
    float t = smoothstep(0.5, 0.8, x);
    gl_FragColor = mix(color0 + color1, color1, t);
}