Skip to content

Commit

Permalink
Updated builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Sep 23, 2023
1 parent 27f0400 commit 89e698f
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 23 deletions.
23 changes: 16 additions & 7 deletions build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2951,20 +2951,29 @@ class RenderTarget extends EventDispatcher {

}

options = Object.assign( {
generateMipmaps: false,
internalFormat: null,
minFilter: LinearFilter,
depthBuffer: true,
stencilBuffer: false,
depthTexture: null,
samples: 0
}, options );

this.texture = new Texture( image, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.colorSpace );
this.texture.isRenderTargetTexture = true;

this.texture.flipY = false;
this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
this.texture.internalFormat = options.internalFormat !== undefined ? options.internalFormat : null;
this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
this.texture.generateMipmaps = options.generateMipmaps;
this.texture.internalFormat = options.internalFormat;

this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : false;
this.depthBuffer = options.depthBuffer;
this.stencilBuffer = options.stencilBuffer;

this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null;
this.depthTexture = options.depthTexture;

this.samples = options.samples !== undefined ? options.samples : 0;
this.samples = options.samples;

}

Expand Down
23 changes: 16 additions & 7 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -2956,20 +2956,29 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

options = Object.assign( {
generateMipmaps: false,
internalFormat: null,
minFilter: LinearFilter,
depthBuffer: true,
stencilBuffer: false,
depthTexture: null,
samples: 0
}, options );

this.texture = new Texture( image, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.colorSpace );
this.texture.isRenderTargetTexture = true;

this.texture.flipY = false;
this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
this.texture.internalFormat = options.internalFormat !== undefined ? options.internalFormat : null;
this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
this.texture.generateMipmaps = options.generateMipmaps;
this.texture.internalFormat = options.internalFormat;

this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : false;
this.depthBuffer = options.depthBuffer;
this.stencilBuffer = options.stencilBuffer;

this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null;
this.depthTexture = options.depthTexture;

this.samples = options.samples !== undefined ? options.samples : 0;
this.samples = options.samples;

}

Expand Down
2 changes: 1 addition & 1 deletion build/three.min.js

Large diffs are not rendered by default.

23 changes: 16 additions & 7 deletions build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -2949,20 +2949,29 @@ class RenderTarget extends EventDispatcher {

}

options = Object.assign( {
generateMipmaps: false,
internalFormat: null,
minFilter: LinearFilter,
depthBuffer: true,
stencilBuffer: false,
depthTexture: null,
samples: 0
}, options );

this.texture = new Texture( image, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.colorSpace );
this.texture.isRenderTargetTexture = true;

this.texture.flipY = false;
this.texture.generateMipmaps = options.generateMipmaps !== undefined ? options.generateMipmaps : false;
this.texture.internalFormat = options.internalFormat !== undefined ? options.internalFormat : null;
this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
this.texture.generateMipmaps = options.generateMipmaps;
this.texture.internalFormat = options.internalFormat;

this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : false;
this.depthBuffer = options.depthBuffer;
this.stencilBuffer = options.stencilBuffer;

this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null;
this.depthTexture = options.depthTexture;

this.samples = options.samples !== undefined ? options.samples : 0;
this.samples = options.samples;

}

Expand Down
2 changes: 1 addition & 1 deletion build/three.module.min.js

Large diffs are not rendered by default.

0 comments on commit 89e698f

Please sign in to comment.