mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Compute view matrix from viewer pose
This commit is contained in:
parent
d1d8e97c30
commit
2e48606569
5 changed files with 51 additions and 17 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue