fix(world): wind terrain triangles clockwise so the seabed is a front face

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
OlivierandClaude Sonnet 5.5 committed 2026-10-06 20:09:46 +02:00
1 parent b1d32f7d81
commit bbf1dc9990
2 files changed
+13 -3

No files matched your search

@@ -92,8 +92,8 @@ func _build_tile(start_column: int, end_column: int, start_row: int, end_row: in
var top_right := top_left + 1
var bottom_left := top_left + columns_in_tile
var bottom_right := bottom_left + 1
indices.append_array([top_left, bottom_left, top_right])
indices.append_array([top_right, bottom_left, bottom_right])
indices.append_array([top_left, top_right, bottom_left])
indices.append_array([top_right, bottom_right, bottom_left])
var arrays: Array = []
arrays.resize(Mesh.ARRAY_MAX)
arrays[Mesh.ARRAY_VERTEX] = vertices