Skip to content

Commit 89e698f

Browse files
committed
Updated builds.
1 parent 27f0400 commit 89e698f

File tree

5 files changed

+50
-23
lines changed

5 files changed

+50
-23
lines changed

build/three.cjs

+16-7
Original file line numberDiff line numberDiff line change
@@ -2951,20 +2951,29 @@ class RenderTarget extends EventDispatcher {
29512951

29522952
}
29532953

2954+
options = Object.assign( {
2955+
generateMipmaps: false,
2956+
internalFormat: null,
2957+
minFilter: LinearFilter,
2958+
depthBuffer: true,
2959+
stencilBuffer: false,
2960+
depthTexture: null,
2961+
samples: 0
2962+
}, options );
2963+
29542964
this.texture = new Texture( image, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.colorSpace );
29552965
this.texture.isRenderTargetTexture = true;
29562966

29572967
this.texture.flipY = false;
2958-
this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
2959-
this.texture.internalFormat = options.internalFormat !== undefined ? options.internalFormat : null;
2960-
this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
2968+
this.texture.generateMipmaps = options.generateMipmaps;
2969+
this.texture.internalFormat = options.internalFormat;
29612970

2962-
this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
2963-
this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : false;
2971+
this.depthBuffer = options.depthBuffer;
2972+
this.stencilBuffer = options.stencilBuffer;
29642973

2965-
this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null;
2974+
this.depthTexture = options.depthTexture;
29662975

2967-
this.samples = options.samples !== undefined ? options.samples : 0;
2976+
this.samples = options.samples;
29682977

29692978
}
29702979

build/three.js

+16-7
Original file line numberDiff line numberDiff line change
@@ -2956,20 +2956,29 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
29562956

29572957
}
29582958

2959+
options = Object.assign( {
2960+
generateMipmaps: false,
2961+
internalFormat: null,
2962+
minFilter: LinearFilter,
2963+
depthBuffer: true,
2964+
stencilBuffer: false,
2965+
depthTexture: null,
2966+
samples: 0
2967+
}, options );
2968+
29592969
this.texture = new Texture( image, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.colorSpace );
29602970
this.texture.isRenderTargetTexture = true;
29612971

29622972
this.texture.flipY = false;
2963-
this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
2964-
this.texture.internalFormat = options.internalFormat !== undefined ? options.internalFormat : null;
2965-
this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
2973+
this.texture.generateMipmaps = options.generateMipmaps;
2974+
this.texture.internalFormat = options.internalFormat;
29662975

2967-
this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
2968-
this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : false;
2976+
this.depthBuffer = options.depthBuffer;
2977+
this.stencilBuffer = options.stencilBuffer;
29692978

2970-
this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null;
2979+
this.depthTexture = options.depthTexture;
29712980

2972-
this.samples = options.samples !== undefined ? options.samples : 0;
2981+
this.samples = options.samples;
29732982

29742983
}
29752984

build/three.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.module.js

+16-7
Original file line numberDiff line numberDiff line change
@@ -2949,20 +2949,29 @@ class RenderTarget extends EventDispatcher {
29492949

29502950
}
29512951

2952+
options = Object.assign( {
2953+
generateMipmaps: false,
2954+
internalFormat: null,
2955+
minFilter: LinearFilter,
2956+
depthBuffer: true,
2957+
stencilBuffer: false,
2958+
depthTexture: null,
2959+
samples: 0
2960+
}, options );
2961+
29522962
this.texture = new Texture( image, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.colorSpace );
29532963
this.texture.isRenderTargetTexture = true;
29542964

29552965
this.texture.flipY = false;
2956-
this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
2957-
this.texture.internalFormat = options.internalFormat !== undefined ? options.internalFormat : null;
2958-
this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
2966+
this.texture.generateMipmaps = options.generateMipmaps;
2967+
this.texture.internalFormat = options.internalFormat;
29592968

2960-
this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
2961-
this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : false;
2969+
this.depthBuffer = options.depthBuffer;
2970+
this.stencilBuffer = options.stencilBuffer;
29622971

2963-
this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null;
2972+
this.depthTexture = options.depthTexture;
29642973

2965-
this.samples = options.samples !== undefined ? options.samples : 0;
2974+
this.samples = options.samples;
29662975

29672976
}
29682977

build/three.module.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)