mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-11-05 09:54:16 +00:00
23 lines
488 B
JavaScript
23 lines
488 B
JavaScript
|
|
import { WebGLRenderTarget } from './WebGLRenderTarget.js';
|
||
|
|
import { DataArrayTexture } from '../textures/DataArrayTexture.js';
|
||
|
|
|
||
|
|
class WebGLArrayRenderTarget extends WebGLRenderTarget {
|
||
|
|
|
||
|
|
constructor( width = 1, height = 1, depth = 1 ) {
|
||
|
|
|
||
|
|
super( width, height );
|
||
|
|
|
||
|
|
this.isWebGLArrayRenderTarget = true;
|
||
|
|
|
||
|
|
this.depth = depth;
|
||
|
|
|
||
|
|
this.texture = new DataArrayTexture( null, width, height, depth );
|
||
|
|
|
||
|
|
this.texture.isRenderTargetTexture = true;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
export { WebGLArrayRenderTarget };
|