1 2 3 4 5 6 7 8 9 10 11 12 13
| vec2 fixUV(in vec2 c) { return (2. * c - iResolution.xy) / min(iResolution.x, iResolution.y); }
void mainImage( out vec4 fragColor, in vec2 fragCoord ) { vec2 uv = fixUV(fragCoord); vec3 col = vec3( 0.9 , 0.65 , 0.1 ) ; float d= length(uv); col = mix(col.rgb , vec3(0. ) , smoothstep( 0.5 ,1. , d ) ); fragColor = vec4(col,1.0); }
|