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