3D biomes

This commit is contained in:
2026-11-07 12:13:43 -03:00
parent b726ce9695
commit 22191d260c
53 changed files with 874 additions and 316 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ const shade = (color: [number, number, number], factor: number): [number, number
const column = terrain.column(x, z);
heights[pz * size + px] = column.height;
const surface = Math.round(column.height);
const biome = terrain.biome(column, surface, false);
const biome = terrain.biome(column, surface, false, surface);
const color = BIOME_COLORS[biome] ?? [255, 0, 255];
rgb.set(color, (pz * size + px) * 3);
}