summaryrefslogtreecommitdiff
path: root/src/shader/dot.fragment.glsl
blob: 6d998b5611f141ae722fb1a082d8ff3faf274a49 (plain)
1
2
3
4
5
6
7
8
9
uniform vec4 u_color;
uniform float u_blur;

void main() {
    float dist = length(gl_PointCoord - 0.5);
    float t = smoothstep(0.5, 0.5 - u_blur, dist);

    gl_FragColor = u_color * t;
}