Skip to content

Commit 9abb2f1

Browse files
committed
Revert "Get rid of secondary scene traversal for transparents and distortion"
This reverts commit d795551.
1 parent 3bdf2cf commit 9abb2f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ogsr_engine/Layers/xrRenderPC_R4/r4_R_render.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,14 +305,15 @@ void CRender::Render()
305305
//******* Main calc - DEFERRER RENDERER
306306
// Main calc
307307
Device.Statistic->RenderCALC.Begin();
308-
r_pmask(true, true, true); // enable priority "0,1",+ capture wmarks
309-
308+
r_pmask(true, false, true); // enable priority "0",+ capture wmarks
310309
if (bSUN)
311310
set_Recorder(&main_coarse_structure);
312311
else
313312
set_Recorder(NULL);
314313
phase = PHASE_NORMAL;
315314
render_main(Device.mFullTransform, true);
315+
set_Recorder(NULL);
316+
r_pmask(true, false); // disable priority "1"
316317
Device.Statistic->RenderCALC.End();
317318

318319
BOOL split_the_scene_to_minimize_wait = FALSE;
@@ -527,4 +528,6 @@ void CRender::render_forward()
527528
r_dsgraph_render_sorted(); // strict-sorted geoms
528529
g_pGamePersistent->Environment().RenderLast(); // rain/thunder-bolts
529530
}
531+
532+
RImplementation.o.distortion = FALSE; // disable distorion
530533
}

0 commit comments

Comments
 (0)