texture mapping

This commit is contained in:
2024-04-01 23:54:50 -04:00
parent 23ae1391c0
commit 83dbf82478
9 changed files with 66 additions and 18 deletions

View File

@@ -29,7 +29,7 @@ pub fn generate_chunk(chunk_x: f64, chunk_z: f64, cfg: &GenerationConfig, seed:
&cfg,
&noise,
);
result[x + z * Chunk::SIZE] = sample;
result[x + z * Chunk::SIZE] = sample.floor();
}
}
return Chunk {