Enable shadow catching for Eevee hair
Shadow catching was disabled for hair in Eevee, because of an issue in the shadow maps. The issue has since been resolved, so this re-enables shadow catching for hair.
This commit is contained in:
parent
cbbfacdac0
commit
e304150701
|
@ -353,10 +353,7 @@ vec3 eevee_surface_lit(vec3 world_normal, vec3 albedo, vec3 f0, float roughness,
|
|||
float vis = 1.0;
|
||||
|
||||
sd.l_vector = ld.l_position - worldPosition;
|
||||
|
||||
#ifndef HAIR_SHADER
|
||||
light_visibility(ld, sd, vis);
|
||||
#endif
|
||||
light_shade(ld, sd, albedo, roughnessSquared, f0, diff, spec);
|
||||
|
||||
radiance += vis * (diff + spec) * ld.l_color;
|
||||
|
|
Loading…
Reference in New Issue