From eb734746a8daa5c1692dd2058aa5a28c1675c137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 10 Oct 2017 16:41:13 +0200 Subject: Eevee: Fix hashed and alpha clip transparency. --- source/blender/draw/engines/eevee/eevee_materials.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '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); -- cgit v1.2.3