소스 검색

Updated builds.

Mr.doob 8 년 전
부모
커밋
b6a8dd1ca7
3개의 변경된 파일127개의 추가작업 그리고 111개의 파일을 삭제
  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();
 

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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();
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.