Eevee: Fix Contact shadows with Translucent BSDF

This commit is contained in:
Clément Foucault 2019-06-14 15:19:28 +02:00
parent 6e414b2910
commit a5a0f158e3
1 changed files with 2 additions and 1 deletions

View File

@ -227,7 +227,8 @@ float light_visibility(LightData ld,
vec3 ray_ori = viewPosition;
// vN = (gl_FrontFacing) ? vN : -vN;
/* Fix translucency shadowed by contact shadows. */
vN = (gl_FrontFacing) ? vN : -vN;
if (dot(vN, ray_dir) <= 0.0) {
return vis;