Compute view matrix from viewer pose

This commit is contained in:
Manish Goregaokar 2019-03-21 16:29:22 -07:00
parent d1d8e97c30
commit 2e48606569
5 changed files with 51 additions and 17 deletions

View file

@ -173,6 +173,14 @@ impl VRDisplay {
VRDisplayBinding::Wrap,
)
}
pub fn left_eye_params_offset(&self) -> [f32; 3] {
self.left_eye_params.get().offset_array()
}
pub fn right_eye_params_offset(&self) -> [f32; 3] {
self.right_eye_params.get().offset_array()
}
}
impl Drop for VRDisplay {