提交 f989ce3a 编写于 作者: M Mr.doob

WebVR: Updated to latest WebXR spec.

上级 1b895aa0
......@@ -78,7 +78,7 @@ var WEBVR = {
if ( currentSession === null ) {
device.requestSession( { exclusive: true } ).then( onSessionStarted );
device.requestSession( { immersive: true } ).then( onSessionStarted );
} else {
......@@ -141,7 +141,7 @@ var WEBVR = {
navigator.xr.requestDevice().then( function ( device ) {
device.supportsSession( { exclusive: true } ).then( function () {
device.supportsSession( { immersive: true } ).then( function () {
showEnterXR( device );
......
......@@ -43,7 +43,7 @@
renderer.vr.userHeight = 0; // TOFIX
document.body.appendChild( renderer.domElement );
document.body.appendChild( WEBVR.createButton( renderer, { frameOfReferenceType: 'headModel' } ) );
document.body.appendChild( WEBVR.createButton( renderer, { frameOfReferenceType: 'head-model' } ) );
//
......
......@@ -40,7 +40,7 @@
renderer.vr.userHeight = 0; // TOFIX
document.body.appendChild( renderer.domElement );
document.body.appendChild( WEBVR.createButton( renderer, { frameOfReferenceType: 'eyeLevel' } ) );
document.body.appendChild( WEBVR.createButton( renderer, { frameOfReferenceType: 'eye-level' } ) );
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册