Remove LightmapOrigin, LightmapStepX and LightmapStepY as we no longer use them

This commit is contained in:
Magnus Norddahl 2023-09-19 00:47:47 +02:00
commit e5a4e6c85a
6 changed files with 10 additions and 43 deletions

View file

@ -200,9 +200,6 @@ void VkLightmap::RenderBakeImage()
pc.TileY = (float)selectedSurface.Y;
pc.SurfaceIndex = mesh->GetSurfaceIndex(targetSurface);
pc.TextureSize = (float)bakeImageSize;
pc.LightmapOrigin = targetSurface->worldOrigin - targetSurface->worldStepX - targetSurface->worldStepY;
pc.LightmapStepX = targetSurface->worldStepX * viewport.width;
pc.LightmapStepY = targetSurface->worldStepY * viewport.height;
pc.TileWidth = (float)targetSurface->texWidth;
pc.TileHeight = (float)targetSurface->texHeight;
pc.WorldToLocal = targetSurface->translateWorldToLocal;