Skip to content

Commit

Permalink
Update RagnarokGND.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
rdw-software committed Dec 13, 2023
1 parent 1736c9f commit 8a9586a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Core/FileFormats/RagnarokGND.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a9586a

Please sign in to comment.