WebGLArrayRenderTarget.js 488 B

12345678910111213141516171819202122
  1. import { WebGLRenderTarget } from './WebGLRenderTarget.js';
  2. import { DataArrayTexture } from '../textures/DataArrayTexture.js';
  3. class WebGLArrayRenderTarget extends WebGLRenderTarget {
  4. constructor( width = 1, height = 1, depth = 1 ) {
  5. super( width, height );
  6. this.isWebGLArrayRenderTarget = true;
  7. this.depth = depth;
  8. this.texture = new DataArrayTexture( null, width, height, depth );
  9. this.texture.isRenderTargetTexture = true;
  10. }
  11. }
  12. export { WebGLArrayRenderTarget };
粤ICP备19079148号