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

Updated builds.

上级 5e79a459
...@@ -19854,6 +19854,12 @@ ...@@ -19854,6 +19854,12 @@
}; };
this.submitFrame = function () {
if ( device && device.isPresenting ) device.submitFrame();
};
} }
/** /**
...@@ -21162,8 +21168,6 @@ ...@@ -21162,8 +21168,6 @@
// update camera matrices and frustum // update camera matrices and frustum
camera.onBeforeRender( _this );
if ( camera.parent === null ) camera.updateMatrixWorld(); if ( camera.parent === null ) camera.updateMatrixWorld();
if ( vr.enabled ) { if ( vr.enabled ) {
...@@ -21348,7 +21352,11 @@ ...@@ -21348,7 +21352,11 @@
} }
camera.onAfterRender( _this ); if ( vr.enabled ) {
vr.submitFrame();
}
// _gl.finish(); // _gl.finish();
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
...@@ -19848,6 +19848,12 @@ function WebVRManager( renderer ) { ...@@ -19848,6 +19848,12 @@ function WebVRManager( renderer ) {
}; };
this.submitFrame = function () {
if ( device && device.isPresenting ) device.submitFrame();
};
} }
/** /**
...@@ -21156,8 +21162,6 @@ function WebGLRenderer( parameters ) { ...@@ -21156,8 +21162,6 @@ function WebGLRenderer( parameters ) {
// update camera matrices and frustum // update camera matrices and frustum
camera.onBeforeRender( _this );
if ( camera.parent === null ) camera.updateMatrixWorld(); if ( camera.parent === null ) camera.updateMatrixWorld();
if ( vr.enabled ) { if ( vr.enabled ) {
...@@ -21342,7 +21346,11 @@ function WebGLRenderer( parameters ) { ...@@ -21342,7 +21346,11 @@ function WebGLRenderer( parameters ) {
} }
camera.onAfterRender( _this ); if ( vr.enabled ) {
vr.submitFrame();
}
// _gl.finish(); // _gl.finish();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册