From 8a9586a11bdd42c7a9a45309c5c7da5ac7bc04f6 Mon Sep 17 00:00:00 2001 From: RDW Date: Wed, 13 Dec 2023 02:17:49 +0100 Subject: [PATCH] Update RagnarokGND.lua --- Core/FileFormats/RagnarokGND.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Core/FileFormats/RagnarokGND.lua b/Core/FileFormats/RagnarokGND.lua index 3c801ad7..2df39e97 100644 --- a/Core/FileFormats/RagnarokGND.lua +++ b/Core/FileFormats/RagnarokGND.lua @@ -391,6 +391,16 @@ function RagnarokGND:GenerateGroundMeshSections() -- -- Copy from NORTH end + if not isOnMapBoundaryU then -- Copy from EAST (if possible) + if adjacentCubeEast.top_surface_id == -1 then + -- Can't copy :/ + bottomRightVertexColor = bottomLeftVertexColor + else + local adjacentGroundSurfaceEast = self.texturedSurfaces[adjacentCubeEast.top_surface_id] + bottomRightVertexColor = adjacentGroundSurfaceEast.bottom_left_color + end + end + table_insert(mesh.vertexColors, bottomLeftVertexColor.red / 255) table_insert(mesh.vertexColors, bottomLeftVertexColor.green / 255) table_insert(mesh.vertexColors, bottomLeftVertexColor.blue / 255)