mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Add support for webxr cubemap and spherical 360 rendering
This commit is contained in:
parent
352ecda7b5
commit
a2142d7dbd
5 changed files with 53 additions and 2 deletions
|
@ -684,6 +684,10 @@ impl webxr::glwindow::GlWindow for XRWindow {
|
|||
webxr::glwindow::GlWindowMode::StereoRedCyan
|
||||
} else if pref!(dom.webxr.glwindow.left_right) {
|
||||
webxr::glwindow::GlWindowMode::StereoLeftRight
|
||||
} else if pref!(dom.webxr.glwindow.spherical) {
|
||||
webxr::glwindow::GlWindowMode::Spherical
|
||||
} else if pref!(dom.webxr.glwindow.cubemap) {
|
||||
webxr::glwindow::GlWindowMode::Cubemap
|
||||
} else {
|
||||
webxr::glwindow::GlWindowMode::Blit
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue