tutorial10

pull/157/head
Hiroaki Yutani 3 years ago
parent 9c07ba5388
commit 316f191cf7

@ -35,7 +35,7 @@ struct Camera {
impl Camera {
fn build_view_projection_matrix(&self) -> cgmath::Matrix4<f32> {
let view = cgmath::Matrix4::look_at(self.eye, self.target, self.up);
let view = cgmath::Matrix4::look_at_rh(self.eye, self.target, self.up);
let proj = cgmath::perspective(cgmath::Deg(self.fovy), self.aspect, self.znear, self.zfar);
proj * view
}

Loading…
Cancel
Save