Add support for multiple meshes (DoomLevelSubmesh)
This commit is contained in:
parent
fae22f1bb7
commit
65929d021f
8 changed files with 292 additions and 347 deletions
|
|
@ -176,7 +176,7 @@ void VkLightmap::Render()
|
|||
LightmapRaytracePC pc;
|
||||
pc.TileX = (float)selectedSurface.X;
|
||||
pc.TileY = (float)selectedSurface.Y;
|
||||
pc.SurfaceIndex = mesh->GetSurfaceIndex(targetSurface);
|
||||
pc.SurfaceIndex = mesh->StaticMesh->GetSurfaceIndex(targetSurface);
|
||||
pc.TextureSize = (float)bakeImageSize;
|
||||
pc.TileWidth = (float)targetSurface->texWidth;
|
||||
pc.TileHeight = (float)targetSurface->texHeight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue