[Bf-blender-cvs] [c623fccfc22] greasepencil-object: Remove upper limit of stroke thickness
Antonio Vazquez
noreply at git.blender.org
Fri Jun 16 08:32:22 CEST 2017
Commit: c623fccfc223325973a8c57c9a92cffe57c7677e
Author: Antonio Vazquez
Date: Fri Jun 16 08:32:13 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBc623fccfc223325973a8c57c9a92cffe57c7677e
Remove upper limit of stroke thickness
===================================================================
M source/blender/draw/engines/gpencil/shaders/gpencil_stroke_vert.glsl
===================================================================
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_stroke_vert.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_stroke_vert.glsl
index 56d68cf8b8e..813c784ee5e 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_stroke_vert.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_stroke_vert.glsl
@@ -24,7 +24,7 @@ void main(void)
if (is_persp == TRUE) {
float size = (ProjectionMatrix[3][3] == 0.0) ? (thickness / (gl_Position.z * defaultpixsize)) : (thickness / defaultpixsize);
- finalThickness = clamp(size * objscale, 1.0, thickness * 50.0);
+ finalThickness = max(size * objscale, 1.0);
}
else {
finalThickness = thickness;
More information about the Bf-blender-cvs
mailing list