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
+2 -1
View File
@@ -182,10 +182,11 @@ idRenderModel *idRenderWorldLocal::ParseModel( idLexer *src ) {
// add the completed surface to the model
model->AddSurface( surf );
if (!surf.shader->IsSky())
if (!surf.shader->IsSky() && surf.shader->IsLitMaterial() && surf.shader->SurfaceCastsShadow())
{
idRenderModelStatic* modelStatic = (idRenderModelStatic*)model;
dxrWorldModel_t dxrModel;
dxrModel.tri = tri;
modelStatic->UpdateDXR(dxrModel.dxrBottomAcel, model->NumSurfaces() - 1);
glUpdateTopLevelAceelStructure(dxrWorldId, dxrModel.dxrBottomAcel, NULL, dxrModel.topAccelStruct);
worldDXRmodels.Append(dxrModel);