WebGLMultisampleRenderTarget.d.ts 528 B

12345678910111213141516171819202122
  1. import {
  2. WebGLRenderTarget,
  3. WebGLRenderTargetOptions,
  4. } from './WebGLRenderTarget';
  5. export class WebGLMultisampleRenderTarget extends WebGLRenderTarget {
  6. constructor(
  7. width: number,
  8. height: number,
  9. options?: WebGLRenderTargetOptions
  10. );
  11. readonly isWebGLMultisampleRenderTarget: true;
  12. /**
  13. * Specifies the number of samples to be used for the renderbuffer storage.However, the maximum supported size for multisampling is platform dependent and defined via gl.MAX_SAMPLES.
  14. * @default 4
  15. */
  16. samples: number;
  17. }
粤ICP备19079148号