Skip to content

Commit

Permalink
Update webxr to support secondary capture view
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed May 13, 2020
1 parent d96accc commit b181e0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions components/script/dom/xrviewerpose.rs
Expand Up @@ -57,6 +57,11 @@ impl XRViewerPose {
views.push(XRView::new(global, session, &left, XREye::Left, &pose));
views.push(XRView::new(global, session, &right, XREye::Right, &pose));
},
Views::StereoCapture(left, right, third_eye) => {
views.push(XRView::new(global, session, &left, XREye::Left, &pose));
views.push(XRView::new(global, session, &right, XREye::Right, &pose));
views.push(XRView::new(global, session, &third_eye, XREye::None, &pose));
},
});
let transform = XRRigidTransform::new(global, cast_transform(pose));
let pose = reflect_dom_object(Box::new(XRViewerPose::new_inherited(&transform)), global);
Expand Down

0 comments on commit b181e0c

Please sign in to comment.