Skip to content

Commit 781711a

Browse files
committed
Updated builds.
1 parent 268aeae commit 781711a

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

build/three.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,10 +1859,11 @@
18591859
this.viewport = new Vector4(0, 0, width, height);
18601860
options = options || {};
18611861
this.texture = new Texture(undefined, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding);
1862-
this.texture.image = {};
1863-
this.texture.image.width = width;
1864-
this.texture.image.height = height;
1865-
this.texture.image.depth = 1;
1862+
this.texture.image = {
1863+
width: width,
1864+
height: height,
1865+
depth: 1
1866+
};
18661867
this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
18671868
this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
18681869
this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;

build/three.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.module.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,10 +2452,7 @@ class WebGLRenderTarget extends EventDispatcher {
24522452

24532453
this.texture = new Texture( undefined, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding );
24542454

2455-
this.texture.image = {};
2456-
this.texture.image.width = width;
2457-
this.texture.image.height = height;
2458-
this.texture.image.depth = 1;
2455+
this.texture.image = { width: width, height: height, depth: 1 };
24592456

24602457
this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
24612458
this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;

0 commit comments

Comments
 (0)