Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/shapecraft. flo-bit.dev/shapecraft
Something went wrong. Try again.
511 B · 22 lines
JavaScript
at commit da69385e
1234567891011121314151617181920212223import { WebGLRenderTarget } from './WebGLRenderTarget.js';import { DataArrayTexture } from '../textures/DataArrayTexture.js';
class WebGLArrayRenderTarget extends WebGLRenderTarget {
constructor( width = 1, height = 1, depth = 1, options = {} ) {
super( width, height, options );
this.isWebGLArrayRenderTarget = true;
this.depth = depth;
this.texture = new DataArrayTexture( null, width, height, depth );
this.texture.isRenderTargetTexture = true;
}
}
export { WebGLArrayRenderTarget };