diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_point_uniform_color_frag.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_point_uniform_color_frag.glsl | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_point_uniform_color_frag.glsl b/source/blender/gpu/shaders/gpu_shader_point_uniform_color_frag.glsl deleted file mode 100644 index 692320bea93..00000000000 --- a/source/blender/gpu/shaders/gpu_shader_point_uniform_color_frag.glsl +++ /dev/null @@ -1,18 +0,0 @@ - -uniform vec4 color; - -out vec4 fragColor; - -void main() -{ - vec2 centered = gl_PointCoord - vec2(0.5); - float dist_squared = dot(centered, centered); - const float rad_squared = 0.25; - - // round point with jaggy edges - if (dist_squared > rad_squared) { - discard; - } - - fragColor = color; -} |