diff options
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl b/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl index e9bdfec008f..f55b42eb148 100644 --- a/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl @@ -453,7 +453,7 @@ void CLOSURE_NAME(vec3 N N = -N; } vec3 bent_normal; - float final_ao = occlusion_compute(gl_FrontFacing ? N : -N, viewPosition, ao, rand, bent_normal); + float final_ao = occlusion_compute(N, viewPosition, ao, rand, bent_normal); if (!use_contact_shadows) { N = -N; /* Bypass bent normal. */ |