[Bf-blender-cvs] [02d28d2e214] greasepencil-object: GPencil: Test very thin lines

Antonio Vazquez noreply at git.blender.org
Wed Jun 2 18:16:06 CEST 2021


Commit: 02d28d2e214550376a8829756150b3a9eaf26831
Author: Antonio Vazquez
Date:   Wed Jun 2 18:15:59 2021 +0200
Branches: greasepencil-object
https://developer.blender.org/rB02d28d2e214550376a8829756150b3a9eaf26831

GPencil: Test very thin lines

===================================================================

M	source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl

===================================================================

diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
index ac48b94fea9..9a72e93317a 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
@@ -330,7 +330,7 @@ float stroke_thickness_modulate(float thickness)
   /* Modify stroke thickness by object and layer factors.-*/
   thickness *= thicknessScale;
   thickness += thicknessOffset;
-  thickness = max(1.0, thickness);
+  thickness = max(0.05, thickness);
 
   if (thicknessIsScreenSpace) {
     /* Multiply offset by view Z so that offset is constant in screenspace.



More information about the Bf-blender-cvs mailing list