mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'site2/path_color' into 'master'
Change Path colors See merge request veloren/veloren!3192
This commit is contained in:
commit
44d16ce441
@ -81,6 +81,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Made /home command a mod+ exclusive
|
||||
- Friendly creatures will now defend each other
|
||||
- Creatures will now defend their pets
|
||||
- [WorldGen] Change path colors
|
||||
|
||||
### Removed
|
||||
|
||||
|
@ -758,6 +758,9 @@ impl Site {
|
||||
|
||||
if dist.map_or(false, |d| d <= 1.5) {
|
||||
let alt = canvas.col(wpos2d).map_or(0, |col| col.alt as i32);
|
||||
let sub_surface_color = canvas
|
||||
.col(wpos2d)
|
||||
.map_or(vek::Rgb::zero(), |col| col.sub_surface_color);
|
||||
let mut underground = true;
|
||||
for z in -8..6 {
|
||||
canvas.map(Vec3::new(wpos2d.x, wpos2d.y, alt + z), |b| {
|
||||
@ -766,7 +769,10 @@ impl Site {
|
||||
b.into_vacant()
|
||||
} else if b.is_filled() {
|
||||
if b.is_terrain() {
|
||||
Block::new(BlockKind::Earth, Rgb::new(0x6A, 0x47, 0x24))
|
||||
Block::new(
|
||||
BlockKind::Earth,
|
||||
(sub_surface_color * 255.0).as_(),
|
||||
)
|
||||
} else {
|
||||
b
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user