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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user