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