mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue