Add support for webxr cubemap and spherical 360 rendering

This commit is contained in:
Alan Jeffrey 2020-06-27 09:18:29 -05:00
parent 352ecda7b5
commit a2142d7dbd
5 changed files with 53 additions and 2 deletions

View file

@ -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
}