[Bf-blender-cvs] [ab9f5c23ef0] greasepencil-object: Enable zdepth for passes.
Antonio Vazquez
noreply at git.blender.org
Wed May 17 11:34:24 CEST 2017
Commit: ab9f5c23ef0c74abd1c5d9d48d404dd17763af81
Author: Antonio Vazquez
Date: Wed May 17 11:34:14 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBab9f5c23ef0c74abd1c5d9d48d404dd17763af81
Enable zdepth for passes.
Actually only works for filling
===================================================================
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 0e338fffa65..eca0f8b7b51 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -128,7 +128,7 @@ static void GPENCIL_cache_init(void *vedata)
{
/* Stroke pass */
- DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND | DRW_STATE_WRITE_DEPTH;
+ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND | DRW_STATE_WRITE_DEPTH | 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