[Bf-blender-cvs] [08a21765581] greasepencil-object: Fix FXAA problem when drawing

Antonio Vazquez noreply at git.blender.org
Wed Jun 27 11:29:40 CEST 2018


Commit: 08a21765581cd98f93da60457c978399a39a8cfd
Author: Antonio Vazquez
Date:   Wed Jun 27 11:28:11 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB08a21765581cd98f93da60457c978399a39a8cfd

Fix FXAA problem when drawing

The internal passes never must check z-depth values, only in the final pass.

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

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 b62f52bdced..4e9af110653 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -379,7 +379,7 @@ void GPENCIL_cache_init(void *vedata)
 		 * This pass is used too to take the snapshot used for background_pass. This image
 		 * will be used as the background while the user is drawing.
 		 */
-		psl->mix_pass_noblend = DRW_pass_create("GPencil Mix Pass no blend", DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS);
+		psl->mix_pass_noblend = DRW_pass_create("GPencil Mix Pass no blend", DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_ALWAYS);
 		DRWShadingGroup *mix_shgrp_noblend = DRW_shgroup_create(e_data.gpencil_fullscreen_sh, psl->mix_pass_noblend);
 		DRW_shgroup_call_add(mix_shgrp_noblend, quad, NULL);
 		DRW_shgroup_uniform_texture_ref(mix_shgrp_noblend, "strokeColor", &e_data.temp_color_tx_a);



More information about the Bf-blender-cvs mailing list