mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-15 06:53:59 +01:00
17 lines
263 B
Plaintext
17 lines
263 B
Plaintext
|
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(.075, .025, dist);
|
||
|
c = mix(c, color, a);
|
||
|
|
||
|
gl_FragColor = c;
|
||
|
}
|