GPencil: Changes in Fill and new 3D Cursor View Plane
[blender.git] / source / blender / gpu / shaders / gpu_shader_point_uniform_color_frag.glsl
1
2 uniform vec4 color;
3
4 out vec4 fragColor;
5
6 void main()
7 {
8         vec2 centered = gl_PointCoord - vec2(0.5);
9         float dist_squared = dot(centered, centered);
10         const float rad_squared = 0.25;
11
12         // round point with jaggy edges
13         if (dist_squared > rad_squared)
14                 discard;
15
16         fragColor = color;
17 }