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

@ -56,6 +56,10 @@ impl XRSession {
self.display.xr_present(self, None, Some(p));
}
pub fn display(&self) -> &VRDisplay {
&self.display
}
pub fn set_layer(&self, layer: &XRLayer) {
self.base_layer.set(Some(layer))
}