Move SSAO pass to be before translucent rendering

Fix depth sampling location when not using fullscreen scene
This commit is contained in:
Magnus Norddahl 2016-09-03 04:29:50 +02:00
commit c7c0ffadb5
5 changed files with 17 additions and 4 deletions

View file

@ -491,6 +491,8 @@ void FGLRenderer::DrawScene(int drawmode)
RenderScene(recursion);
AmbientOccludeScene();
// Handle all portals after rendering the opaque objects but before
// doing all translucent stuff
recursion++;