updated asset loader

prep for adding biomes
This commit is contained in:
2024-04-18 22:09:50 -04:00
parent 9fb305a887
commit df76dc7169
6 changed files with 60 additions and 19 deletions

View File

@@ -29,7 +29,7 @@ pub fn generate_chunk_mesh(chunk: &Chunk, map: &Map) -> Mesh {
for z in 0..Chunk::SIZE {
for x in 0..Chunk::SIZE {
let height = chunk.points[x + z * Chunk::SIZE];
let height = chunk.heights[x + z * Chunk::SIZE];
let off_pos = Vec3::new(x as f32, height, z as f32);
let tile_pos = offset3d_to_world(off_pos);
let coord = HexCoord::from_offset(