Remove LightmapOrigin, LightmapStepX and LightmapStepY as we no longer use them
This commit is contained in:
parent
9e136a7e79
commit
e5a4e6c85a
6 changed files with 10 additions and 43 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -23,18 +23,12 @@ struct LightmapPushConstants
|
|||
uint32_t LightEnd;
|
||||
int32_t SurfaceIndex;
|
||||
int32_t PushPadding1;
|
||||
FVector3 LightmapOrigin;
|
||||
float TextureSize;
|
||||
FVector3 LightmapStepX;
|
||||
float PushPadding3;
|
||||
FVector3 LightmapStepY;
|
||||
float PushPadding4;
|
||||
FVector3 WorldToLocal;
|
||||
float PushPadding5;
|
||||
float TextureSize;
|
||||
FVector3 ProjLocalToU;
|
||||
float PushPadding6;
|
||||
float PushPadding2;
|
||||
FVector3 ProjLocalToV;
|
||||
float PushPadding7;
|
||||
float PushPadding3;
|
||||
float TileX;
|
||||
float TileY;
|
||||
float TileWidth;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue