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
+15
View File
@@ -569,6 +569,13 @@ void idRenderModelStatic::UpdateDXR(uint32_t& dxrBottomAcel, int onlySurface)
modelSurface_t* surf = &surfaces[i];
if (onlySurface == -1)
{
if (!surf->shader->IsLitMaterial()) {
continue;
}
}
numDXRVerts += surf->geometry->numVerts;
numDXRIndexes += surf->geometry->numIndexes;
}
@@ -584,6 +591,14 @@ void idRenderModelStatic::UpdateDXR(uint32_t& dxrBottomAcel, int onlySurface)
continue;
modelSurface_t* surf = &surfaces[i];
if (onlySurface == -1)
{
if (!surf->shader->IsLitMaterial()) {
continue;
}
}
for (int d = 0; d < surf->geometry->numIndexes; ++d)
{
indices[indexId++] = vertexId + surf->geometry->indexes[d];