diff options
Diffstat (limited to 'source/blender/draw/engines/gpencil/shaders/gpencil_point_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/gpencil/shaders/gpencil_point_frag.glsl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_point_frag.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_point_frag.glsl index db973056110..a1285029e4c 100644 --- a/source/blender/draw/engines/gpencil/shaders/gpencil_point_frag.glsl +++ b/source/blender/draw/engines/gpencil/shaders/gpencil_point_frag.glsl @@ -23,9 +23,10 @@ void main() float dist_squared = dot(centered, centered); const float rad_squared = 0.25; - // round point with jaggy edges - if ((mode != GPENCIL_MODE_BOX) && (dist_squared > rad_squared)) + /* Round point with jaggy edges. */ + if ((mode != GPENCIL_MODE_BOX) && (dist_squared > rad_squared)) { discard; + } vec4 tmp_color = texture2D(myTexture, mTexCoord); |