mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-15 07:40:44 +02:00
DXR now supports portal culling.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user