mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed world viewer
Former-commit-id: 03113582d1bd9bce6848c66b9c73a2ba2939162e
This commit is contained in:
parent
92391883a9
commit
62f3808f5a
@ -23,7 +23,8 @@ fn main() {
|
||||
|
||||
let alt = world
|
||||
.sim()
|
||||
.sample(pos)
|
||||
.sampler()
|
||||
.sample_2d(pos)
|
||||
.map(|sample| sample.alt.sub(64.0).add(gain).mul(0.7).max(0.0).min(255.0) as u8)
|
||||
.unwrap_or(0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user