瀏覽代碼

Updated builds.

Mr.doob 2 年之前
父節點
當前提交
bca61b3541
共有 5 個文件被更改,包括 3 次插入39 次删除
  1. 1 4
      build/three.cjs
  2. 1 4
      build/three.js
  3. 0 0
      build/three.min.js
  4. 1 4
      build/three.module.js
  5. 0 27
      examples/js/math/ColorConverter.js

+ 1 - 4
build/three.cjs

@@ -18598,11 +18598,8 @@ class WebXRManager extends EventDispatcher {
 
 			cameraVR.matrixWorld.decompose(cameraVR.position, cameraVR.quaternion, cameraVR.scale); // update user camera and its children
 
-			camera.position.copy(cameraVR.position);
-			camera.quaternion.copy(cameraVR.quaternion);
-			camera.scale.copy(cameraVR.scale);
 			camera.matrix.copy(cameraVR.matrix);
-			camera.matrixWorld.copy(cameraVR.matrixWorld);
+			camera.matrix.decompose(camera.position, camera.quaternion, camera.scale);
 			const children = camera.children;
 
 			for (let i = 0, l = children.length; i < l; i++) {

+ 1 - 4
build/three.js

@@ -18600,11 +18600,8 @@
 
 				cameraVR.matrixWorld.decompose(cameraVR.position, cameraVR.quaternion, cameraVR.scale); // update user camera and its children
 
-				camera.position.copy(cameraVR.position);
-				camera.quaternion.copy(cameraVR.quaternion);
-				camera.scale.copy(cameraVR.scale);
 				camera.matrix.copy(cameraVR.matrix);
-				camera.matrixWorld.copy(cameraVR.matrixWorld);
+				camera.matrix.decompose(camera.position, camera.quaternion, camera.scale);
 				const children = camera.children;
 
 				for (let i = 0, l = children.length; i < l; i++) {

文件差異過大導致無法顯示
+ 0 - 0
build/three.min.js


+ 1 - 4
build/three.module.js

@@ -25272,11 +25272,8 @@ class WebXRManager extends EventDispatcher {
 
 			// update user camera and its children
 
-			camera.position.copy( cameraVR.position );
-			camera.quaternion.copy( cameraVR.quaternion );
-			camera.scale.copy( cameraVR.scale );
 			camera.matrix.copy( cameraVR.matrix );
-			camera.matrixWorld.copy( cameraVR.matrixWorld );
+			camera.matrix.decompose( camera.position, camera.quaternion, camera.scale );
 
 			const children = camera.children;
 

+ 0 - 27
examples/js/math/ColorConverter.js

@@ -24,33 +24,6 @@
 			target.v = _hsl.l + _hsl.s;
 			return target;
 
-		} // where c, m, y, k is between 0 and 1
-
-
-		static setCMYK( color, c, m, y, k ) {
-
-			const r = ( 1 - c ) * ( 1 - k );
-			const g = ( 1 - m ) * ( 1 - k );
-			const b = ( 1 - y ) * ( 1 - k );
-			return color.setRGB( r, g, b );
-
-		}
-
-		static getCMYK( color, target ) {
-
-			const r = color.r;
-			const g = color.g;
-			const b = color.b;
-			const k = 1 - Math.max( r, g, b );
-			const c = ( 1 - r - k ) / ( 1 - k );
-			const m = ( 1 - g - k ) / ( 1 - k );
-			const y = ( 1 - b - k ) / ( 1 - k );
-			target.c = c;
-			target.m = m;
-			target.y = y;
-			target.k = k;
-			return target;
-
 		}
 
 	}

部分文件因文件數量過多而無法顯示