Eevee: Render: Fix Ao pass background contamination.

It was poluted by the additive blend mode.
This commit is contained in:
Clément Foucault 2018-02-03 03:17:22 +01:00
parent f61bcc70e1
commit c8e87edccb
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ void main()
gtao_deferred(normal, viewPosition, noise, depth, visibility, bent_normal);
FragColor = vec4(visibility);
/* Handle Background case. Prevent artifact due to uncleared Horizon Render Target. */
FragColor = vec4((depth == 1.0) ? 0.0 : visibility);
}
#else