web3d / node_modules /three /src /renderers /WebGLMultisampleRenderTarget.js
julien-c's picture
julien-c HF staff
do not gitignore the builds
6cd9596
raw
history blame
686 Bytes
import { WebGLRenderTarget } from './WebGLRenderTarget.js';
/**
* @author Mugen87 / https://github.com/Mugen87
* @author Matt DesLauriers / @mattdesl
*/
function WebGLMultisampleRenderTarget( width, height, options ) {
WebGLRenderTarget.call( this, width, height, options );
this.samples = 4;
}
WebGLMultisampleRenderTarget.prototype = Object.assign( Object.create( WebGLRenderTarget.prototype ), {
constructor: WebGLMultisampleRenderTarget,
isWebGLMultisampleRenderTarget: true,
copy: function ( source ) {
WebGLRenderTarget.prototype.copy.call( this, source );
this.samples = source.samples;
return this;
}
} );
export { WebGLMultisampleRenderTarget };