Fix terrain generation

This commit is contained in:
Sijmen 2021-05-31 03:55:16 +02:00
parent 229804b306
commit da7f7759ad
Signed by: vijfhoek
GPG key ID: 82D05C89B28B0DAE

View file

@ -35,11 +35,11 @@ impl Chunk {
.set_size(CHUNK_SIZE, CHUNK_SIZE)
.set_x_bounds(
chunk_x as f64 * TERRAIN_NOISE_SCALE + TERRAIN_NOISE_OFFSET,
chunk_x as f64 * TERRAIN_NOISE_SCALE * 2.0 + TERRAIN_NOISE_OFFSET,
chunk_x as f64 * TERRAIN_NOISE_SCALE + TERRAIN_NOISE_SCALE + TERRAIN_NOISE_OFFSET,
)
.set_y_bounds(
chunk_z as f64 * TERRAIN_NOISE_SCALE + TERRAIN_NOISE_OFFSET,
chunk_z as f64 * TERRAIN_NOISE_SCALE * 2.0 + TERRAIN_NOISE_OFFSET,
chunk_z as f64 * TERRAIN_NOISE_SCALE + TERRAIN_NOISE_SCALE + TERRAIN_NOISE_OFFSET,
)
.build();
@ -49,11 +49,11 @@ impl Chunk {
.set_size(CHUNK_SIZE, CHUNK_SIZE)
.set_x_bounds(
chunk_x as f64 * STONE_NOISE_SCALE + STONE_NOISE_OFFSET,
chunk_x as f64 * STONE_NOISE_SCALE * 2.0 + STONE_NOISE_OFFSET,
chunk_x as f64 * STONE_NOISE_SCALE + STONE_NOISE_SCALE + STONE_NOISE_OFFSET,
)
.set_y_bounds(
chunk_y as f64 * STONE_NOISE_SCALE + STONE_NOISE_OFFSET,
chunk_y as f64 * STONE_NOISE_SCALE * 2.0 + STONE_NOISE_OFFSET,
chunk_z as f64 * STONE_NOISE_SCALE + STONE_NOISE_OFFSET,
chunk_z as f64 * STONE_NOISE_SCALE + STONE_NOISE_SCALE + STONE_NOISE_OFFSET,
)
.build();