diff --git a/src/common/rendering/hwrenderer/data/hw_levelmesh.h b/src/common/rendering/hwrenderer/data/hw_levelmesh.h index e837c2d11..c537f8ae3 100644 --- a/src/common/rendering/hwrenderer/data/hw_levelmesh.h +++ b/src/common/rendering/hwrenderer/data/hw_levelmesh.h @@ -79,7 +79,6 @@ struct LevelMeshSurface // TArray verts; TArray uvs; - FVector3 boundsMin, boundsMax; // Touching light sources std::vector LightList; diff --git a/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp b/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp index 46df34482..bb96aa5c2 100644 --- a/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp +++ b/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp @@ -101,8 +101,8 @@ void VkLightmap::RenderAtlasImage(size_t pageIndex) // Paint all surfaces part of the smoothing group into the surface for (LevelMeshSurface* surface : mesh->SmoothingGroups[targetSurface->smoothingGroupIndex].surfaces) { - FVector2 minUV = ToUV(surface->boundsMin, targetSurface); - FVector2 maxUV = ToUV(surface->boundsMax, targetSurface); + FVector2 minUV = ToUV(surface->bounds.min, targetSurface); + FVector2 maxUV = ToUV(surface->bounds.max, targetSurface); if (surface != targetSurface && (maxUV.X < 0.0f || maxUV.Y < 0.0f || minUV.X > 1.0f || minUV.Y > 1.0f)) continue; // Bounding box not visible