WIP partial lightmapping
This commit is contained in:
parent
f95ffbe299
commit
b163901862
10 changed files with 84 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue