[Bf-blender-cvs] [48bf837c8c3] greasepencil-object: GPencil: Disable gradient lines for Line strokes

Antonioya noreply at git.blender.org
Wed Apr 10 10:42:58 CEST 2019


Commit: 48bf837c8c38bd159790d690824f53026ec82cf1
Author: Antonioya
Date:   Tue Apr 9 16:01:14 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rB48bf837c8c38bd159790d690824f53026ec82cf1

GPencil: Disable gradient lines for Line strokes

Keep this disabled while the line glitch bug exists.

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

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

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

diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_stroke_frag.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_stroke_frag.glsl
index 1825346ac68..a49a6e84f17 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_stroke_frag.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_stroke_frag.glsl
@@ -58,12 +58,14 @@ void main()
 	}
 
 	/* gradient */
+	/* keep this disabled while the line glitch bug exists
 	if (gradient_f < 1.0) {
 		float d = abs(mTexCoord.y - 0.5)  * (1.1 - gradient_f);
 		float alpha = 1.0 - clamp((fragColor.a - (d * 2.0)), 0.03, 1.0);
 		fragColor.a = smoothstep(fragColor.a, 0.0, alpha);
 		
 	}
+	*/
 
 	if(fragColor.a < 0.0035)
 		discard;



More information about the Bf-blender-cvs mailing list