Changed chunk size from 32x32x32 to 16x16x16

This commit is contained in:
Piotrek
2021-05-14 13:04:46 +02:00
parent c1f3d0f398
commit 05b62d4b90
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -101,11 +101,11 @@ impl World {
// Try generating chunk
let timer0 = Instant::now();
let mut chunk = WorldChunk::new();
for x in 0..32 {
for z in 0..32 {
for x in 0..chunk::SIZE as i32 {
for z in 0..chunk::SIZE as i32 {
let bpos = Vector3::<i32>{x,y:0,z};
let block = chunk.get_block_mut(&bpos);
WorldGen::generate(&(pos*32 + bpos), block);
WorldGen::generate(&(pos*chunk::SIZE as i32 + bpos), block);
}
}