diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-06-14 16:19:28 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-06-14 17:20:29 +0300 |
commit | a5a0f158e363ff55b791c9e0970c824bc80a0a3a (patch) | |
tree | 9923934836fe6ef966e4d9f3936f0ffcb2313faa /source/blender/draw/engines/eevee/shaders | |
parent | 6e414b29108b08b32a0e004f82d3bfaaec6d064e (diff) |
Eevee: Fix Contact shadows with Translucent BSDF
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lights_lib.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lights_lib.glsl b/source/blender/draw/engines/eevee/shaders/lights_lib.glsl index cb4302dd143..2d14f52d7e6 100644 --- a/source/blender/draw/engines/eevee/shaders/lights_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/lights_lib.glsl @@ -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; |