Explorar o código

Updated builds.

Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
781711a478
Modificáronse 3 ficheiros con 6 adicións e 8 borrados
  1. 5 4
      build/three.js
  2. 0 0
      build/three.min.js
  3. 1 4
      build/three.module.js

+ 5 - 4
build/three.js

@@ -1859,10 +1859,11 @@
 			this.viewport = new Vector4(0, 0, width, height);
 			options = options || {};
 			this.texture = new Texture(undefined, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding);
-			this.texture.image = {};
-			this.texture.image.width = width;
-			this.texture.image.height = height;
-			this.texture.image.depth = 1;
+			this.texture.image = {
+				width: width,
+				height: height,
+				depth: 1
+			};
 			this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
 			this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
 			this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;

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


+ 1 - 4
build/three.module.js

@@ -2452,10 +2452,7 @@ class WebGLRenderTarget extends EventDispatcher {
 
 		this.texture = new Texture( undefined, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding );
 
-		this.texture.image = {};
-		this.texture.image.width = width;
-		this.texture.image.height = height;
-		this.texture.image.depth = 1;
+		this.texture.image = { width: width, height: height, depth: 1 };
 
 		this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
 		this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;

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