[Bf-blender-cvs] [ef80c41fb9e] greasepencil-object: Make Dots mode thickness equal to Line mode

Antonio Vazquez noreply at git.blender.org
Wed Mar 7 09:44:33 CET 2018


Commit: ef80c41fb9e0c8edac972cf796d79134cdc1d2d2
Author: Antonio Vazquez
Date:   Wed Mar 7 09:44:19 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBef80c41fb9e0c8edac972cf796d79134cdc1d2d2

Make Dots mode thickness equal to Line mode

The dots was using half of thickness and when change the mode to line, the line was thicker.

Now, both thickness are equal.

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

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

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

diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_point_geom.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_point_geom.glsl
index 0abca0d31e7..e3fe7cc635f 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_point_geom.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_point_geom.glsl
@@ -55,7 +55,7 @@ void main(void)
 	vec4 P0 = gl_in[0].gl_Position;
 	vec2 sp0 = toScreenSpace(P0);
 	
-	float size = finalThickness[0] * 0.5; 
+	float size = finalThickness[0]; 
 	float aspect = 1.0;
 	/* generate the triangle strip */
 	mTexCoord = rotateUV(vec2(0, 1), finaluvdata[0].y);



More information about the Bf-blender-cvs mailing list