Browse Source

Updated builds.

Mr.doob 8 years ago
parent
commit
b6a8dd1ca7
3 changed files with 127 additions and 111 deletions
  1. 11 3
      build/three.js
  2. 105 105
      build/three.min.js
  3. 11 3
      build/three.module.js

+ 11 - 3
build/three.js

@@ -19854,6 +19854,12 @@
 
 		};
 
+		this.submitFrame = function () {
+
+			if ( device && device.isPresenting ) device.submitFrame();
+
+		};
+
 	}
 
 	/**
@@ -21162,8 +21168,6 @@
 
 			// update camera matrices and frustum
 
-			camera.onBeforeRender( _this );
-
 			if ( camera.parent === null ) camera.updateMatrixWorld();
 
 			if ( vr.enabled ) {
@@ -21348,7 +21352,11 @@
 
 			}
 
-			camera.onAfterRender( _this );
+			if ( vr.enabled ) {
+
+				vr.submitFrame();
+
+			}
 
 			// _gl.finish();
 

File diff suppressed because it is too large
+ 105 - 105
build/three.min.js


+ 11 - 3
build/three.module.js

@@ -19848,6 +19848,12 @@ function WebVRManager( renderer ) {
 
 	};
 
+	this.submitFrame = function () {
+
+		if ( device && device.isPresenting ) device.submitFrame();
+
+	};
+
 }
 
 /**
@@ -21156,8 +21162,6 @@ function WebGLRenderer( parameters ) {
 
 		// update camera matrices and frustum
 
-		camera.onBeforeRender( _this );
-
 		if ( camera.parent === null ) camera.updateMatrixWorld();
 
 		if ( vr.enabled ) {
@@ -21342,7 +21346,11 @@ function WebGLRenderer( parameters ) {
 
 		}
 
-		camera.onAfterRender( _this );
+		if ( vr.enabled ) {
+
+			vr.submitFrame();
+
+		}
 
 		// _gl.finish();
 

Some files were not shown because too many files changed in this diff