WebGLMultisampleRenderTarget.js 460 B

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