Newer
Older
HuangJiPC / public / static / three / src / renderers / WebGLArrayRenderTarget.js
@zhangdeliang zhangdeliang on 21 Jun 476 bytes update
import { WebGLRenderTarget } from './WebGLRenderTarget.js';
import { DataArrayTexture } from '../textures/DataArrayTexture.js';

class WebGLArrayRenderTarget extends WebGLRenderTarget {

	constructor( width, height, depth ) {

		super( width, height );

		this.isWebGLArrayRenderTarget = true;

		this.depth = depth;

		this.texture = new DataArrayTexture( null, width, height, depth );

		this.texture.isRenderTargetTexture = true;

	}

}

export { WebGLArrayRenderTarget };