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:
Luca Rood 2017-06-26 12:30:30 +02:00
parent cbbfacdac0
commit e304150701
1 changed files with 0 additions and 3 deletions

View File

@ -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;