Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-05-02 15:32:12 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-02 15:32:41 +0300
commit7f366c048a538adc1a6972492e45df2c217f68ff (patch)
tree9eb47c5ba3ee370b654de35793803dff31acbcdd /source/blender/draw
parenta914765221fb370244998c805f0750c2370fbfe4 (diff)
Fix T63435 Incorrect fresnel and normals for hair strands on EEVEE
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/engines/eevee/eevee_materials.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c
index fa767039029..456f4bdb5f1 100644
--- a/source/blender/draw/engines/eevee/eevee_materials.c
+++ b/source/blender/draw/engines/eevee/eevee_materials.c
@@ -1881,6 +1881,13 @@ void EEVEE_hair_cache_populate(EEVEE_Data *vedata,
shgrp = DRW_shgroup_material_hair_create(ob, psys, md, psl->material_pass, gpumat);
+ if (!use_diffuse && !use_glossy && !use_refract) {
+ /* FIXME: Small hack to avoid issue when utilTex is needed for
+ * world_normals_get and none of the bsdfs that need it are present.
+ * This can try to bind utilTex even if not needed. */
+ DRW_shgroup_uniform_texture(shgrp, "utilTex", e_data.util_tex);
+ }
+
add_standard_uniforms(shgrp,
sldata,
vedata,