mirror of
https://github.com/DramaticShape/DramaticShapeVoxelMod.git
synced 2026-08-12 09:20:51 +02:00
keep edge-row buildings' eave overhangs across the seam
A body-anchored building's eave juts frontEave voxels past the map boundary; the neighbour-body mask read that overhang as a ring scrap and opened the roof rim into the sky from across the seam. Building placements only scan the body, so their quads now carry an `own` flag the edge keep-rules never touch.
This commit is contained in:
@@ -669,6 +669,13 @@ function Buildings.stamp(S, map, quads, tx, ty, bw, bh)
|
||||
{ q[3][1] + mx, q[3][2], q[3][3] + mz },
|
||||
{ q[4][1] + mx, q[4][2], q[4][3] + mz },
|
||||
uv = q.uv, shade = q.shade,
|
||||
-- placements only ever scan the BODY, so a building is always this
|
||||
-- map's own structure: the mesher's edge keep-rules must not eat
|
||||
-- the parts that poke past the boundary (an edge-row house's eave
|
||||
-- juts frontEave voxels into the neighbour's airspace, and the
|
||||
-- neighbour-body mask read that overhang as a ring scrap -- which
|
||||
-- opened the roof rim into the sky from across the seam)
|
||||
own = true,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user