Upload acceleration structures for the level mesh

This commit is contained in:
Magnus Norddahl 2022-06-05 23:24:53 +02:00 committed by Christoph Oelckers
commit 97073410c4
12 changed files with 802 additions and 0 deletions

View file

@ -123,6 +123,8 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
screen->mShadowMap.SetCollectLights(nullptr);
}
screen->SetLevelMesh(camera->Level->levelMesh);
// Update the attenuation flag of all light defaults for each viewpoint.
// This function will only do something if the setting differs.
FLightDefaults::SetAttenuationForLevel(!!(camera->Level->flags3 & LEVEL3_ATTENUATE));