bitrot: update for nalgebra deprecations
This commit is contained in:
@@ -376,8 +376,8 @@ impl<D: gfx::Device,
|
|||||||
let eye = Self::toroid((x, y), r1, r2, r3);
|
let eye = Self::toroid((x, y), r1, r2, r3);
|
||||||
let looktgt = Self::toroid((x, y - 1.0), r1, r2, r3); // look ahead = north
|
let looktgt = Self::toroid((x, y - 1.0), r1, r2, r3); // look ahead = north
|
||||||
let normal = Self::toroid((x, y), 0.0, r2, r2).component_mul(&na::Vector3::new(r2 / r3, 1.0, 1.0));
|
let normal = Self::toroid((x, y), 0.0, r2, r2).component_mul(&na::Vector3::new(r2 / r3, 1.0, 1.0));
|
||||||
self.camera * na::Isometry3::look_at_rh(&na::Point3::from_coordinates(eye),
|
self.camera * na::Isometry3::look_at_rh(&na::Point3::from(eye),
|
||||||
&na::Point3::from_coordinates(looktgt),
|
&na::Point3::from(looktgt),
|
||||||
&normal,
|
&normal,
|
||||||
).to_homogeneous()
|
).to_homogeneous()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user