mouselook
This commit is contained in:
@@ -105,7 +105,7 @@ impl ViewRoot<gfx_device_gl::Device, ColorFormat, DepthFormat> {
|
||||
1.0).to_homogeneous();
|
||||
let proj_mat = na::geometry::Perspective3::new(1.0, 90.0, NEAR, FAR);
|
||||
let scene_mat = scene.origin();
|
||||
let viewmodel_mat = head_mat * scene_mat;
|
||||
let viewmodel_mat = scene.mouselook() * head_mat * scene_mat;
|
||||
let trans = Trans { viewmodel: *viewmodel_mat.as_ref(),
|
||||
matrix: *(proj_mat.as_matrix() * viewmodel_mat).as_ref() };
|
||||
window.encoder.update_constant_buffer(&self.trans, &trans);
|
||||
|
||||
Reference in New Issue
Block a user