WebGLMultisampleRenderTarget.js 589 B

123456789101112131415161718192021222324252627282930
  1. import { WebGLRenderTarget } from './WebGLRenderTarget.js';
  2. function WebGLMultisampleRenderTarget( width, height, options ) {
  3. WebGLRenderTarget.call( this, width, height, options );
  4. this.samples = 4;
  5. }
  6. WebGLMultisampleRenderTarget.prototype = Object.assign( Object.create( WebGLRenderTarget.prototype ), {
  7. constructor: WebGLMultisampleRenderTarget,
  8. isWebGLMultisampleRenderTarget: true,
  9. copy: function ( source ) {
  10. WebGLRenderTarget.prototype.copy.call( this, source );
  11. this.samples = source.samples;
  12. return this;
  13. }
  14. } );
  15. export { WebGLMultisampleRenderTarget };
粤ICP备19079148号