674a1a051f
CCBUG: 322136 REVIEW: 111600
8 lines
222 B
GLSL
8 lines
222 B
GLSL
uniform vec2 u_center;
|
|
uniform float u_radius;
|
|
uniform float u_progress;
|
|
|
|
void main() {
|
|
float d = smoothstep(0, u_radius, distance(gl_FragCoord.xy, u_center));
|
|
gl_FragColor = vec4(0.0, 0.0, 0.0, d * u_progress);
|
|
}
|