3D biomes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user