首页 > TAG信息列表 > iResolution
shader 圆
float circle(in vec2 st, in float r, in float blur){ float d = distance(st, vec2(.5)); float t = smoothstep(r,r+blur,d);; return t; } void mainImage( out vec4 fragColor, in vec2 fragCoord ) { // Normalized pixel coordinates (from 0 to 1)