Explorar o código

Updated builds.

Mr.doob %!s(int64=3) %!d(string=hai) anos
pai
achega
87ab885795
Modificáronse 4 ficheiros con 52 adicións e 60 borrados
  1. 16 19
      build/three.cjs
  2. 16 19
      build/three.js
  3. 0 0
      build/three.min.js
  4. 20 22
      build/three.module.js

+ 16 - 19
build/three.cjs

@@ -11591,16 +11591,6 @@ class OrthographicCamera extends Camera {
 
 OrthographicCamera.prototype.isOrthographicCamera = true;
 
-class RawShaderMaterial extends ShaderMaterial {
-	constructor(parameters) {
-		super(parameters);
-		this.type = 'RawShaderMaterial';
-	}
-
-}
-
-RawShaderMaterial.prototype.isRawShaderMaterial = true;
-
 const LOD_MIN = 4; // The standard deviations (radians) associated with the extra mips. These are
 // chosen to approximate a Trowbridge-Reitz distribution function times the
 // geometric shadowing function. These sigma values squared must match the
@@ -12096,7 +12086,7 @@ function _setViewport(target, x, y, width, height) {
 function _getBlurShader(lodMax, width, height) {
 	const weights = new Float32Array(MAX_SAMPLES);
 	const poleAxis = new Vector3(0, 1, 0);
-	const shaderMaterial = new RawShaderMaterial({
+	const shaderMaterial = new ShaderMaterial({
 		name: 'SphericalGaussianBlur',
 		defines: {
 			'n': MAX_SAMPLES,
@@ -12132,8 +12122,6 @@ function _getBlurShader(lodMax, width, height) {
 		/* glsl */
 		`
 
-			#extension GL_EXT_shader_texture_lod : enable
-
 			precision mediump float;
 			precision mediump int;
 
@@ -12201,7 +12189,7 @@ function _getBlurShader(lodMax, width, height) {
 }
 
 function _getEquirectShader() {
-	const shaderMaterial = new RawShaderMaterial({
+	const shaderMaterial = new ShaderMaterial({
 		name: 'EquirectangularToCubeUV',
 		uniforms: {
 			'envMap': {
@@ -12239,7 +12227,7 @@ function _getEquirectShader() {
 }
 
 function _getCubemapShader() {
-	const shaderMaterial = new RawShaderMaterial({
+	const shaderMaterial = new ShaderMaterial({
 		name: 'CubemapToCubeUV',
 		uniforms: {
 			'envMap': {
@@ -12284,8 +12272,6 @@ function _getCommonVertexShader() {
 		precision mediump float;
 		precision mediump int;
 
-		attribute vec3 position;
-		attribute vec2 uv;
 		attribute float faceIndex;
 
 		varying vec3 vOutputDirection;
@@ -26346,6 +26332,16 @@ class ShadowMaterial extends Material {
 
 ShadowMaterial.prototype.isShadowMaterial = true;
 
+class RawShaderMaterial extends ShaderMaterial {
+	constructor(parameters) {
+		super(parameters);
+		this.type = 'RawShaderMaterial';
+	}
+
+}
+
+RawShaderMaterial.prototype.isRawShaderMaterial = true;
+
 /**
  * parameters = {
  *	color: <hex>,
@@ -28618,9 +28614,10 @@ class FileLoader extends Loader {
 				// e.g. 'file://' or 'data://'. Handle as success.
 				if (response.status === 0) {
 					console.warn('THREE.FileLoader: HTTP Status 0 received.');
-				}
+				} // Workaround: Checking if response.body === undefined for Alipay browser #23548
+
 
-				if (typeof ReadableStream === 'undefined' || response.body.getReader === undefined) {
+				if (typeof ReadableStream === 'undefined' || response.body === undefined || response.body.getReader === undefined) {
 					return response;
 				}
 

+ 16 - 19
build/three.js

@@ -11593,16 +11593,6 @@
 
 	OrthographicCamera.prototype.isOrthographicCamera = true;
 
-	class RawShaderMaterial extends ShaderMaterial {
-		constructor(parameters) {
-			super(parameters);
-			this.type = 'RawShaderMaterial';
-		}
-
-	}
-
-	RawShaderMaterial.prototype.isRawShaderMaterial = true;
-
 	const LOD_MIN = 4; // The standard deviations (radians) associated with the extra mips. These are
 	// chosen to approximate a Trowbridge-Reitz distribution function times the
 	// geometric shadowing function. These sigma values squared must match the
@@ -12098,7 +12088,7 @@
 	function _getBlurShader(lodMax, width, height) {
 		const weights = new Float32Array(MAX_SAMPLES);
 		const poleAxis = new Vector3(0, 1, 0);
-		const shaderMaterial = new RawShaderMaterial({
+		const shaderMaterial = new ShaderMaterial({
 			name: 'SphericalGaussianBlur',
 			defines: {
 				'n': MAX_SAMPLES,
@@ -12134,8 +12124,6 @@
 			/* glsl */
 			`
 
-			#extension GL_EXT_shader_texture_lod : enable
-
 			precision mediump float;
 			precision mediump int;
 
@@ -12203,7 +12191,7 @@
 	}
 
 	function _getEquirectShader() {
-		const shaderMaterial = new RawShaderMaterial({
+		const shaderMaterial = new ShaderMaterial({
 			name: 'EquirectangularToCubeUV',
 			uniforms: {
 				'envMap': {
@@ -12241,7 +12229,7 @@
 	}
 
 	function _getCubemapShader() {
-		const shaderMaterial = new RawShaderMaterial({
+		const shaderMaterial = new ShaderMaterial({
 			name: 'CubemapToCubeUV',
 			uniforms: {
 				'envMap': {
@@ -12286,8 +12274,6 @@
 		precision mediump float;
 		precision mediump int;
 
-		attribute vec3 position;
-		attribute vec2 uv;
 		attribute float faceIndex;
 
 		varying vec3 vOutputDirection;
@@ -26348,6 +26334,16 @@
 
 	ShadowMaterial.prototype.isShadowMaterial = true;
 
+	class RawShaderMaterial extends ShaderMaterial {
+		constructor(parameters) {
+			super(parameters);
+			this.type = 'RawShaderMaterial';
+		}
+
+	}
+
+	RawShaderMaterial.prototype.isRawShaderMaterial = true;
+
 	/**
 	 * parameters = {
 	 *	color: <hex>,
@@ -28620,9 +28616,10 @@
 					// e.g. 'file://' or 'data://'. Handle as success.
 					if (response.status === 0) {
 						console.warn('THREE.FileLoader: HTTP Status 0 received.');
-					}
+					} // Workaround: Checking if response.body === undefined for Alipay browser #23548
+
 
-					if (typeof ReadableStream === 'undefined' || response.body.getReader === undefined) {
+					if (typeof ReadableStream === 'undefined' || response.body === undefined || response.body.getReader === undefined) {
 						return response;
 					}
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
build/three.min.js


+ 20 - 22
build/three.module.js

@@ -15153,20 +15153,6 @@ class OrthographicCamera extends Camera {
 
 OrthographicCamera.prototype.isOrthographicCamera = true;
 
-class RawShaderMaterial extends ShaderMaterial {
-
-	constructor( parameters ) {
-
-		super( parameters );
-
-		this.type = 'RawShaderMaterial';
-
-	}
-
-}
-
-RawShaderMaterial.prototype.isRawShaderMaterial = true;
-
 const LOD_MIN = 4;
 
 // The standard deviations (radians) associated with the extra mips. These are
@@ -15798,7 +15784,7 @@ function _getBlurShader( lodMax, width, height ) {
 
 	const weights = new Float32Array( MAX_SAMPLES );
 	const poleAxis = new Vector3( 0, 1, 0 );
-	const shaderMaterial = new RawShaderMaterial( {
+	const shaderMaterial = new ShaderMaterial( {
 
 		name: 'SphericalGaussianBlur',
 
@@ -15823,8 +15809,6 @@ function _getBlurShader( lodMax, width, height ) {
 
 		fragmentShader: /* glsl */`
 
-			#extension GL_EXT_shader_texture_lod : enable
-
 			precision mediump float;
 			precision mediump int;
 
@@ -15897,7 +15881,7 @@ function _getBlurShader( lodMax, width, height ) {
 
 function _getEquirectShader() {
 
-	const shaderMaterial = new RawShaderMaterial( {
+	const shaderMaterial = new ShaderMaterial( {
 
 		name: 'EquirectangularToCubeUV',
 
@@ -15940,7 +15924,7 @@ function _getEquirectShader() {
 
 function _getCubemapShader() {
 
-	const shaderMaterial = new RawShaderMaterial( {
+	const shaderMaterial = new ShaderMaterial( {
 
 		name: 'CubemapToCubeUV',
 
@@ -15986,8 +15970,6 @@ function _getCommonVertexShader() {
 		precision mediump float;
 		precision mediump int;
 
-		attribute vec3 position;
-		attribute vec2 uv;
 		attribute float faceIndex;
 
 		varying vec3 vOutputDirection;
@@ -36373,6 +36355,20 @@ class ShadowMaterial extends Material {
 
 ShadowMaterial.prototype.isShadowMaterial = true;
 
+class RawShaderMaterial extends ShaderMaterial {
+
+	constructor( parameters ) {
+
+		super( parameters );
+
+		this.type = 'RawShaderMaterial';
+
+	}
+
+}
+
+RawShaderMaterial.prototype.isRawShaderMaterial = true;
+
 /**
  * parameters = {
  *  color: <hex>,
@@ -39520,7 +39516,9 @@ class FileLoader extends Loader {
 
 					}
 
-					if ( typeof ReadableStream === 'undefined' || response.body.getReader === undefined ) {
+					// Workaround: Checking if response.body === undefined for Alipay browser #23548
+
+					if ( typeof ReadableStream === 'undefined' || response.body === undefined || response.body.getReader === undefined ) {
 
 						return response;
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio