Pixel-Composer/#backups/shaders/sh_node_circle/sh_node_circle.fsh.backup1
2024-04-22 14:56:37 +07:00

17 lines
283 B
Text

// 2024-04-22 14:49:52
varying vec2 v_vTexcoord;
varying vec4 v_vColour;
uniform vec4 color;
void main() {
float dist = abs(length(v_vTexcoord - .5) * 2. - 0.9);
float a;
vec4 c = vec4(0.);
a = smoothstep(.1, .05, dist);
c = mix(c, color, a);
gl_FragColor = c;
}