DXR now supports portal culling.

This commit is contained in:
Justin Marshall
2026-05-08 00:45:48 -07:00
parent 205e9b8b1d
commit c1e344ca94
12 changed files with 1212 additions and 275 deletions
+9
View File
@@ -1341,6 +1341,15 @@ static void R_AddAmbientDrawsurfs( viewEntity_t *vEntity ) {
continue;
}
if (tr.viewDef->renderWorld)
{
dxrWorldModel_t* dxrWorldModel = tr.viewDef->renderWorld->GetDXRModelForSurf((srfTriangles_t*)tri);
if (dxrWorldModel)
{
glShowTopLevelAccelStructure(tr.viewDef->renderWorld->dxrWorldId, dxrWorldModel->topAccelStruct);
}
}
// debugging tool to make sure we are have the correct pre-calculated bounds
if ( r_checkBounds.GetBool() ) {
int j, k;