WebGLMultisampleRenderTarget.js 686 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { WebGLRenderTarget } from './WebGLRenderTarget.js';
  2. /**
  3. * @author Mugen87 / https://github.com/Mugen87
  4. * @author Matt DesLauriers / @mattdesl
  5. */
  6. function WebGLMultisampleRenderTarget( width, height, options ) {
  7. WebGLRenderTarget.call( this, width, height, options );
  8. this.samples = 4;
  9. }
  10. WebGLMultisampleRenderTarget.prototype = Object.assign( Object.create( WebGLRenderTarget.prototype ), {
  11. constructor: WebGLMultisampleRenderTarget,
  12. isWebGLMultisampleRenderTarget: true,
  13. copy: function ( source ) {
  14. WebGLRenderTarget.prototype.copy.call( this, source );
  15. this.samples = source.samples;
  16. return this;
  17. }
  18. } );
  19. export { WebGLMultisampleRenderTarget };
粤ICP备19079148号