WIP partial lightmapping

This commit is contained in:
RaveYard 2023-09-07 23:27:20 +02:00 committed by Magnus Norddahl
commit b163901862
10 changed files with 84 additions and 7 deletions

View file

@ -124,6 +124,7 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
screen->mShadowMap->SetCollectLights(nullptr);
}
RenderState.ClearVisibleSurfaceList();
screen->SetLevelMesh(camera->Level->levelMesh);
static HWDrawContext mainthread_drawctx;
@ -197,6 +198,8 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
screen->NextEye(eyeCount);
}
screen->UpdateLightmaps(RenderState.GetVisibleSurfaceList());
return mainvp.sector;
}