mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Better shrubs
This commit is contained in:
parent
6284fa0ecd
commit
4aa8a6bb42
@ -5,4 +5,28 @@
|
||||
specifier: "world.shrub.1",
|
||||
center: (6, 6, 2),
|
||||
),
|
||||
(
|
||||
specifier: "world.shrub.jungle-bush-0",
|
||||
center: (5, 5, 1),
|
||||
),
|
||||
(
|
||||
specifier: "world.shrub.jungle-bush-1",
|
||||
center: (5, 5, 1),
|
||||
),
|
||||
(
|
||||
specifier: "world.shrub.jungle-bush-2",
|
||||
center: (5, 5, 1),
|
||||
),
|
||||
(
|
||||
specifier: "world.shrub.jungle-bush-3",
|
||||
center: (5, 5, 1),
|
||||
),
|
||||
(
|
||||
specifier: "world.shrub.jungle-bush-4",
|
||||
center: (5, 5, 1),
|
||||
),
|
||||
(
|
||||
specifier: "world.shrub.jungle-bush-5",
|
||||
center: (5, 5, 1),
|
||||
),
|
||||
]
|
||||
|
BIN
assets/world/shrub/jungle-bush-0.vox
(Stored with Git LFS)
Normal file
BIN
assets/world/shrub/jungle-bush-0.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/world/shrub/jungle-bush-1.vox
(Stored with Git LFS)
Normal file
BIN
assets/world/shrub/jungle-bush-1.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/world/shrub/jungle-bush-2.vox
(Stored with Git LFS)
Normal file
BIN
assets/world/shrub/jungle-bush-2.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/world/shrub/jungle-bush-3.vox
(Stored with Git LFS)
Normal file
BIN
assets/world/shrub/jungle-bush-3.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/world/shrub/jungle-bush-4.vox
(Stored with Git LFS)
Normal file
BIN
assets/world/shrub/jungle-bush-4.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/world/shrub/jungle-bush-5.vox
(Stored with Git LFS)
Normal file
BIN
assets/world/shrub/jungle-bush-5.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -35,7 +35,7 @@ impl ForestKind {
|
||||
ForestKind::Cedar => 0.275..1.45,
|
||||
ForestKind::Pine => 0.2..1.4,
|
||||
ForestKind::Birch => 0.0..0.6,
|
||||
ForestKind::Mangrove => 0.65..1.3,
|
||||
ForestKind::Mangrove => 0.5..1.3,
|
||||
ForestKind::Swamp => 0.5..1.1,
|
||||
_ => 0.0..0.0,
|
||||
}
|
||||
@ -51,7 +51,7 @@ impl ForestKind {
|
||||
ForestKind::Cedar => -0.65..0.15,
|
||||
ForestKind::Pine => -1.8..-0.2,
|
||||
ForestKind::Birch => -0.7..0.25,
|
||||
ForestKind::Mangrove => 0.4..1.6,
|
||||
ForestKind::Mangrove => 0.35..1.6,
|
||||
ForestKind::Swamp => -0.6..0.8,
|
||||
_ => 0.0..0.0,
|
||||
}
|
||||
|
@ -33,7 +33,11 @@ pub fn apply_shrubs_to(canvas: &mut Canvas, rng: &mut impl Rng) {
|
||||
shrub_cache.entry(wpos).or_insert_with(|| {
|
||||
let col = info.col_or_gen(wpos)?;
|
||||
|
||||
if RandomPerm::new(seed).chance(37, col.tree_density * 0.3) {
|
||||
if RandomPerm::new(seed).chance(37, col.tree_density * 0.3)
|
||||
&& col.water_dist.map_or(true, |d| d > 8.0)
|
||||
&& col.spawn_rate > 0.9
|
||||
&& col.path.map_or(true, |(d, _, _, _)| d > 6.0)
|
||||
{
|
||||
Some(Shrub {
|
||||
wpos: wpos.with_z(col.alt as i32),
|
||||
seed,
|
||||
|
@ -369,14 +369,14 @@ impl TreeConfig {
|
||||
branch_child_len: 0.35,
|
||||
branch_child_radius: 0.5,
|
||||
branch_child_radius_lerp: true,
|
||||
leaf_radius: 4.0 * log_scale..4.5 * log_scale,
|
||||
leaf_radius_scaled: 0.0,
|
||||
leaf_radius: 10.0 * log_scale..11.5 * log_scale,
|
||||
leaf_radius_scaled: -8.0 * log_scale,
|
||||
straightness: 0.2,
|
||||
max_depth: 2,
|
||||
splits: 7.5..8.5,
|
||||
split_range: 0.3..1.25,
|
||||
split_range: 0.2..1.25,
|
||||
branch_len_bias: 0.5,
|
||||
leaf_vertical_scale: 0.4,
|
||||
leaf_vertical_scale: 0.35,
|
||||
proportionality: 0.8,
|
||||
inhabited: false,
|
||||
hanging_sprites: &[(0.00007, SpriteKind::Beehive), (0.015, SpriteKind::Liana)],
|
||||
|
Loading…
Reference in New Issue
Block a user