Skip to content

Commit

Permalink
Revert "Get rid of secondary scene traversal for transparents and dis…
Browse files Browse the repository at this point in the history
…tortion"

This reverts commit d795551.
  • Loading branch information
xrSimpodin committed Jul 7, 2024
1 parent 3bdf2cf commit 9abb2f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ogsr_engine/Layers/xrRenderPC_R4/r4_R_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,15 @@ void CRender::Render()
//******* Main calc - DEFERRER RENDERER
// Main calc
Device.Statistic->RenderCALC.Begin();
r_pmask(true, true, true); // enable priority "0,1",+ capture wmarks

r_pmask(true, false, true); // enable priority "0",+ capture wmarks
if (bSUN)
set_Recorder(&main_coarse_structure);
else
set_Recorder(NULL);
phase = PHASE_NORMAL;
render_main(Device.mFullTransform, true);
set_Recorder(NULL);
r_pmask(true, false); // disable priority "1"
Device.Statistic->RenderCALC.End();

BOOL split_the_scene_to_minimize_wait = FALSE;
Expand Down Expand Up @@ -527,4 +528,6 @@ void CRender::render_forward()
r_dsgraph_render_sorted(); // strict-sorted geoms
g_pGamePersistent->Environment().RenderLast(); // rain/thunder-bolts
}

RImplementation.o.distortion = FALSE; // disable distorion
}

0 comments on commit 9abb2f1

Please sign in to comment.