[Bf-blender-cvs] [eb734746a8d] blender2.8: Eevee: Fix hashed and alpha clip transparency.

Clément Foucault noreply at git.blender.org
Wed Oct 11 03:01:08 CEST 2017


Commit: eb734746a8daa5c1692dd2058aa5a28c1675c137
Author: Clément Foucault
Date:   Tue Oct 10 16:41:13 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBeb734746a8daa5c1692dd2058aa5a28c1675c137

Eevee: Fix hashed and alpha clip transparency.

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

M	source/blender/draw/engines/eevee/eevee_materials.c

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

diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c
index 91bdda39876..98dbef8e445 100644
--- a/source/blender/draw/engines/eevee/eevee_materials.c
+++ b/source/blender/draw/engines/eevee/eevee_materials.c
@@ -1008,7 +1008,9 @@ static void material_opaque(
 				*shgrp_depth_clip = DRW_shgroup_material_create(*gpumat_depth, (do_cull) ? psl->depth_pass_clip_cull : psl->depth_pass_clip);
 			}
 
-			if (*shgrp != NULL) {
+			if (*shgrp_depth != NULL) {
+				add_standard_uniforms(*shgrp_depth, sldata, vedata, NULL, NULL, false);
+
 				if (ma->blend_method == MA_BM_CLIP) {
 					DRW_shgroup_uniform_float(*shgrp_depth, "alphaThreshold", &ma->alpha_threshold, 1);
 					DRW_shgroup_uniform_float(*shgrp_depth_clip, "alphaThreshold", &ma->alpha_threshold, 1);



More information about the Bf-blender-cvs mailing list