[Bf-blender-cvs] [cccd0cfc12a] greasepencil-object: Disable zdepth write for strokes

Antonio Vazquez noreply at git.blender.org
Sun May 21 16:30:13 CEST 2017


Commit: cccd0cfc12af5111a36b890aa0501cf8ad1fae86
Author: Antonio Vazquez
Date:   Sun May 21 13:10:50 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBcccd0cfc12af5111a36b890aa0501cf8ad1fae86

Disable zdepth write for strokes

After some analysis, the strokes must work without affect the zdepth buffer or the layer system will not work.

The 2D artist agree that layer system must be the main zdepth order and not the GPU checking.

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

M	source/blender/draw/engines/gpencil/gpencil_engine.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 0e35540bb14..3eec7b5db71 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -125,7 +125,7 @@ static void GPENCIL_cache_init(void *vedata)
 
 	{
 		/* Stroke pass */
-		DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS;
+		DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND | DRW_STATE_DEPTH_LESS;
 		psl->stroke_pass = DRW_pass_create("Gpencil Stroke Pass", state);
 		stl->storage->pal_id = 0;
 		memset(stl->storage->shgrps_fill, 0, sizeof(DRWShadingGroup *) * MAX_GPENCIL_MAT);




More information about the Bf-blender-cvs mailing list