소스 검색

Updated builds.

Mr.doob 2 년 전
부모
커밋
b7af3d1bea
4개의 변경된 파일21개의 추가작업 그리고 51개의 파일을 삭제
  1. 7 15
      build/three.cjs
  2. 7 15
      build/three.js
  3. 0 0
      build/three.min.js
  4. 7 21
      build/three.module.js

+ 7 - 15
build/three.cjs

@@ -16282,7 +16282,6 @@ class WebXRManager extends EventDispatcher {
 		const scope = this;
 		let session = null;
 		let framebufferScaleFactor = 1.0;
-		let limitWithNativeFramebufferScaleFactor = false;
 		let referenceSpace = null;
 		let referenceSpaceType = 'local-floor';
 		let customReferenceSpace = null;
@@ -16394,9 +16393,8 @@ class WebXRManager extends EventDispatcher {
 				type: 'sessionend'
 			});
 		}
-		this.setFramebufferScaleFactor = function (value, limited = false) {
+		this.setFramebufferScaleFactor = function (value) {
 			framebufferScaleFactor = value;
-			limitWithNativeFramebufferScaleFactor = limited;
 			if (scope.isPresenting === true) {
 				console.warn('THREE.WebXRManager: Cannot change framebuffer scale while presenting.');
 			}
@@ -16440,12 +16438,6 @@ class WebXRManager extends EventDispatcher {
 				if (attributes.xrCompatible !== true) {
 					await gl.makeXRCompatible();
 				}
-				if (limitWithNativeFramebufferScaleFactor === true && XRWebGLLayer.getNativeFramebufferScaleFactor) {
-					const nativeFramebufferScaleFactor = XRWebGLLayer.getNativeFramebufferScaleFactor(session);
-					if (nativeFramebufferScaleFactor < framebufferScaleFactor) {
-						framebufferScaleFactor = nativeFramebufferScaleFactor;
-					}
-				}
 				if (session.renderState.layers === undefined || renderer.capabilities.isWebGL2 === false) {
 					const layerInit = {
 						antialias: session.renderState.layers === undefined ? attributes.antialias : true,
@@ -19123,7 +19115,7 @@ class InterleavedBufferAttribute {
 	}
 	clone(data) {
 		if (data === undefined) {
-			console.log('THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will deinterleave buffer data.');
+			console.log('THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.');
 			const array = [];
 			for (let i = 0; i < this.count; i++) {
 				const index = i * this.data.stride + this.offset;
@@ -19144,7 +19136,7 @@ class InterleavedBufferAttribute {
 	}
 	toJSON(data) {
 		if (data === undefined) {
-			console.log('THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will deinterleave buffer data.');
+			console.log('THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.');
 			const array = [];
 			for (let i = 0; i < this.count; i++) {
 				const index = i * this.data.stride + this.offset;
@@ -19153,7 +19145,7 @@ class InterleavedBufferAttribute {
 				}
 			}
 
-			// deinterleave data and save it as an ordinary buffer attribute for now
+			// de-interleave data and save it as an ordinary buffer attribute for now
 
 			return {
 				itemSize: this.itemSize,
@@ -19162,7 +19154,7 @@ class InterleavedBufferAttribute {
 				normalized: this.normalized
 			};
 		} else {
-			// save as true interleaved attribtue
+			// save as true interleaved attribute
 
 			if (data.interleavedBuffers === undefined) {
 				data.interleavedBuffers = {};
@@ -21864,7 +21856,7 @@ class PolyhedronGeometry extends BufferGeometry {
 			const b = new Vector3();
 			const c = new Vector3();
 
-			// iterate over all faces and apply a subdivison with the given detail value
+			// iterate over all faces and apply a subdivision with the given detail value
 
 			for (let i = 0; i < indices.length; i += 3) {
 				// get the vertices of the face
@@ -23562,7 +23554,7 @@ class ShapeGeometry extends BufferGeometry {
 				uvs.push(vertex.x, vertex.y); // world uvs
 			}
 
-			// incides
+			// indices
 
 			for (let i = 0, l = faces.length; i < l; i++) {
 				const face = faces[i];

+ 7 - 15
build/three.js

@@ -16284,7 +16284,6 @@
 			const scope = this;
 			let session = null;
 			let framebufferScaleFactor = 1.0;
-			let limitWithNativeFramebufferScaleFactor = false;
 			let referenceSpace = null;
 			let referenceSpaceType = 'local-floor';
 			let customReferenceSpace = null;
@@ -16396,9 +16395,8 @@
 					type: 'sessionend'
 				});
 			}
-			this.setFramebufferScaleFactor = function (value, limited = false) {
+			this.setFramebufferScaleFactor = function (value) {
 				framebufferScaleFactor = value;
-				limitWithNativeFramebufferScaleFactor = limited;
 				if (scope.isPresenting === true) {
 					console.warn('THREE.WebXRManager: Cannot change framebuffer scale while presenting.');
 				}
@@ -16442,12 +16440,6 @@
 					if (attributes.xrCompatible !== true) {
 						await gl.makeXRCompatible();
 					}
-					if (limitWithNativeFramebufferScaleFactor === true && XRWebGLLayer.getNativeFramebufferScaleFactor) {
-						const nativeFramebufferScaleFactor = XRWebGLLayer.getNativeFramebufferScaleFactor(session);
-						if (nativeFramebufferScaleFactor < framebufferScaleFactor) {
-							framebufferScaleFactor = nativeFramebufferScaleFactor;
-						}
-					}
 					if (session.renderState.layers === undefined || renderer.capabilities.isWebGL2 === false) {
 						const layerInit = {
 							antialias: session.renderState.layers === undefined ? attributes.antialias : true,
@@ -19125,7 +19117,7 @@
 		}
 		clone(data) {
 			if (data === undefined) {
-				console.log('THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will deinterleave buffer data.');
+				console.log('THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.');
 				const array = [];
 				for (let i = 0; i < this.count; i++) {
 					const index = i * this.data.stride + this.offset;
@@ -19146,7 +19138,7 @@
 		}
 		toJSON(data) {
 			if (data === undefined) {
-				console.log('THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will deinterleave buffer data.');
+				console.log('THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.');
 				const array = [];
 				for (let i = 0; i < this.count; i++) {
 					const index = i * this.data.stride + this.offset;
@@ -19155,7 +19147,7 @@
 					}
 				}
 
-				// deinterleave data and save it as an ordinary buffer attribute for now
+				// de-interleave data and save it as an ordinary buffer attribute for now
 
 				return {
 					itemSize: this.itemSize,
@@ -19164,7 +19156,7 @@
 					normalized: this.normalized
 				};
 			} else {
-				// save as true interleaved attribtue
+				// save as true interleaved attribute
 
 				if (data.interleavedBuffers === undefined) {
 					data.interleavedBuffers = {};
@@ -21866,7 +21858,7 @@
 				const b = new Vector3();
 				const c = new Vector3();
 
-				// iterate over all faces and apply a subdivison with the given detail value
+				// iterate over all faces and apply a subdivision with the given detail value
 
 				for (let i = 0; i < indices.length; i += 3) {
 					// get the vertices of the face
@@ -23564,7 +23556,7 @@
 					uvs.push(vertex.x, vertex.y); // world uvs
 				}
 
-				// incides
+				// indices
 
 				for (let i = 0, l = faces.length; i < l; i++) {
 					const face = faces[i];

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
build/three.min.js


+ 7 - 21
build/three.module.js

@@ -25103,7 +25103,6 @@ class WebXRManager extends EventDispatcher {
 
 		let session = null;
 		let framebufferScaleFactor = 1.0;
-		let limitWithNativeFramebufferScaleFactor = false;
 
 		let referenceSpace = null;
 		let referenceSpaceType = 'local-floor';
@@ -25263,10 +25262,9 @@ class WebXRManager extends EventDispatcher {
 
 		}
 
-		this.setFramebufferScaleFactor = function ( value, limited = false ) {
+		this.setFramebufferScaleFactor = function ( value ) {
 
 			framebufferScaleFactor = value;
-			limitWithNativeFramebufferScaleFactor = limited;
 
 			if ( scope.isPresenting === true ) {
 
@@ -25347,18 +25345,6 @@ class WebXRManager extends EventDispatcher {
 
 				}
 
-				if ( limitWithNativeFramebufferScaleFactor === true && XRWebGLLayer.getNativeFramebufferScaleFactor ) {
-
-					const nativeFramebufferScaleFactor = XRWebGLLayer.getNativeFramebufferScaleFactor( session );
-
-					if ( nativeFramebufferScaleFactor < framebufferScaleFactor ) {
-
-						framebufferScaleFactor = nativeFramebufferScaleFactor;
-
-					}
-
-				}
-
 				if ( ( session.renderState.layers === undefined ) || ( renderer.capabilities.isWebGL2 === false ) ) {
 
 					const layerInit = {
@@ -29649,7 +29635,7 @@ class InterleavedBufferAttribute {
 
 		if ( data === undefined ) {
 
-			console.log( 'THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will deinterleave buffer data.' );
+			console.log( 'THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.' );
 
 			const array = [];
 
@@ -29691,7 +29677,7 @@ class InterleavedBufferAttribute {
 
 		if ( data === undefined ) {
 
-			console.log( 'THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will deinterleave buffer data.' );
+			console.log( 'THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.' );
 
 			const array = [];
 
@@ -29707,7 +29693,7 @@ class InterleavedBufferAttribute {
 
 			}
 
-			// deinterleave data and save it as an ordinary buffer attribute for now
+			// de-interleave data and save it as an ordinary buffer attribute for now
 
 			return {
 				itemSize: this.itemSize,
@@ -29718,7 +29704,7 @@ class InterleavedBufferAttribute {
 
 		} else {
 
-			// save as true interleaved attribtue
+			// save as true interleaved attribute
 
 			if ( data.interleavedBuffers === undefined ) {
 
@@ -33955,7 +33941,7 @@ class PolyhedronGeometry extends BufferGeometry {
 			const b = new Vector3();
 			const c = new Vector3();
 
-			// iterate over all faces and apply a subdivison with the given detail value
+			// iterate over all faces and apply a subdivision with the given detail value
 
 			for ( let i = 0; i < indices.length; i += 3 ) {
 
@@ -36457,7 +36443,7 @@ class ShapeGeometry extends BufferGeometry {
 
 			}
 
-			// incides
+			// indices
 
 			for ( let i = 0, l = faces.length; i < l; i ++ ) {
 

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