tree stumps, shorter pines

This commit is contained in:
Pfauenauge90 2019-06-10 20:17:35 +02:00 committed by Joshua Barretto
parent fa8f3a4b49
commit 43ca660e63
23 changed files with 81 additions and 26 deletions

BIN
assets/world/tree/oak_stump/1.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/tree/oak_stump/2.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/tree/oak_stump/3.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/tree/oak_stump/4.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/tree/oak_stump/5.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/tree/oak_stump/6.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/tree/oak_stump/7.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/tree/oak_stump/8.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/tree/oak_stump/9.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/tree/pine_blue/1.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/pine_blue/5.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/pine_blue/7.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/pine_green/1.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/pine_green/5.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/pine_green/7.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/pine_green_2/1.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/pine_green_2/5.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/pine_green_2/7.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/snow_pine/1.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/snow_pine/5.vox (Stored with Git LFS)

Binary file not shown.

BIN
assets/world/tree/snow_pine/7.vox (Stored with Git LFS)

Binary file not shown.

View File

@ -165,7 +165,7 @@ impl<'a> Sampler for BlockGen<'a> {
Vec3::new(tree_pos.x, tree_pos.y, tree_sample.alt as i32);
let rpos = wpos - tree_pos3d;
block.or(TREES[*tree_seed as usize % TREES.len()]
.get((rpos * 160) / 128) // Scaling
.get((rpos * 160) / 160) // Scaling
.map(|b| b.clone())
.unwrap_or(Block::empty()))
}

View File

@ -4,7 +4,7 @@ use std::sync::Arc;
use vek::*;
lazy_static! {
pub static ref TREES: [Arc<Structure>; 81] = [
pub static ref TREES: [Arc<Structure>; 90] = [
// green oaks
assets::load_map("world/tree/oak_green/1.vox", |s: Structure| s
.with_center(Vec3::new(15, 18, 14)))
@ -33,6 +33,34 @@ lazy_static! {
assets::load_map("world/tree/oak_green/9.vox", |s: Structure| s
.with_center(Vec3::new(26, 26, 14)))
.unwrap(),
// oak stumps
assets::load_map("world/tree/oak_stump/1.vox", |s: Structure| s
.with_center(Vec3::new(15, 18, 10)))
.unwrap(),
assets::load_map("world/tree/oak_stump/2.vox", |s: Structure| s
.with_center(Vec3::new(15, 18, 10)))
.unwrap(),
assets::load_map("world/tree/oak_stump/3.vox", |s: Structure| s
.with_center(Vec3::new(16, 20, 10)))
.unwrap(),
assets::load_map("world/tree/oak_stump/4.vox", |s: Structure| s
.with_center(Vec3::new(18, 21, 10)))
.unwrap(),
assets::load_map("world/tree/oak_stump/5.vox", |s: Structure| s
.with_center(Vec3::new(18, 18, 10)))
.unwrap(),
assets::load_map("world/tree/oak_stump/6.vox", |s: Structure| s
.with_center(Vec3::new(16, 21, 10)))
.unwrap(),
assets::load_map("world/tree/oak_stump/7.vox", |s: Structure| s
.with_center(Vec3::new(20, 19, 10)))
.unwrap(),
assets::load_map("world/tree/oak_stump/8.vox", |s: Structure| s
.with_center(Vec3::new(22, 20, 10)))
.unwrap(),
assets::load_map("world/tree/oak_stump/9.vox", |s: Structure| s
.with_center(Vec3::new(26, 26, 10)))
.unwrap(),
// green pines
assets::load_map("world/tree/pine_green/1.vox", |s: Structure| s
.with_center(Vec3::new(15, 15, 14)))