World sections

This commit is contained in:
2026-11-06 23:13:34 -03:00
parent 818ce22dd6
commit 1fa47c027d
21 changed files with 392 additions and 127 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ const shade = (color: [number, number, number], factor: number): [number, number
for (let cx = 0; cx < chunks; cx++) {
const chunk_x = origin / CHUNK_SIZE + cx + center_x;
const chunk_z = origin / CHUNK_SIZE + cz + center_z;
const { blocks } = generate_raw_chunk(chunk_x, chunk_z, seed, block_ids, worldgen);
const blocks = generate_raw_chunk(chunk_x, chunk_z, seed, block_ids, worldgen).column.to_flat();
for (let lz = 0; lz < CHUNK_SIZE; lz++) {
for (let lx = 0; lx < CHUNK_SIZE; lx++) {
const px = cx * CHUNK_SIZE + lx;