mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed gaps in LoD sprites
This commit is contained in:
parent
b2c8dc0806
commit
e84c2aa1db
@ -35,13 +35,13 @@ impl<'a, V: SizedVol> SizedVol for Scaled<'a, V> {
|
||||
fn lower_bound(&self) -> Vec3<i32> {
|
||||
self.inner
|
||||
.lower_bound()
|
||||
.map2(self.scale, |e, scale| (e as f32 * scale).floor() as i32)
|
||||
.map2(self.scale, |e, scale| (e as f32 * scale).ceil() as i32)
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
fn upper_bound(&self) -> Vec3<i32> {
|
||||
self.inner
|
||||
.upper_bound()
|
||||
.map2(self.scale, |e, scale| (e as f32 * scale).floor() as i32)
|
||||
.map2(self.scale, |e, scale| (e as f32 * scale).ceil() as i32)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user