mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Better tree colours
This commit is contained in:
parent
e7dd151833
commit
a6c9c10062
@ -291,18 +291,14 @@ impl<'a> BlockGen<'a> {
|
|||||||
let field = RandomField::new(structure_seed + 0);
|
let field = RandomField::new(structure_seed + 0);
|
||||||
|
|
||||||
let lerp = 0.5
|
let lerp = 0.5
|
||||||
+ ((field.get(Vec3::from(structure_pos)) % 256) as f32 / 256.0 - 0.5) * 0.75
|
+ ((field.get(Vec3::from(structure_pos)) % 256) as f32 / 256.0 - 0.5) * 0.4
|
||||||
+ ((field.get(Vec3::from(pos)) % 256) as f32 / 256.0 - 0.5) * 0.2;
|
+ ((field.get(Vec3::from(pos)) % 256) as f32 / 256.0 - 0.5) * 0.15;
|
||||||
|
|
||||||
match sblock {
|
match sblock {
|
||||||
StructureBlock::TemperateLeaves => Block::new(
|
StructureBlock::TemperateLeaves => Block::new(
|
||||||
1,
|
1,
|
||||||
Lerp::lerp(
|
Lerp::lerp(Rgb::new(0.0, 70.0, 20.0), Rgb::new(180.0, 190.0, 0.0), lerp)
|
||||||
Rgb::new(0.0, 80.0, 40.0),
|
.map(|e| e as u8),
|
||||||
Rgb::new(120.0, 255.0, 10.0),
|
|
||||||
lerp,
|
|
||||||
)
|
|
||||||
.map(|e| e as u8),
|
|
||||||
),
|
),
|
||||||
StructureBlock::PineLeaves => Block::new(
|
StructureBlock::PineLeaves => Block::new(
|
||||||
1,
|
1,
|
||||||
|
Loading…
Reference in New Issue
Block a user