Buckets:

immErfanrajabee/bd / node_modules /three /src /core /RenderTargetArray.js
imerfanrajabee's picture
download
raw
971 Bytes
import { RenderTarget } from './RenderTarget.js';
import { DataArrayTexture } from '../textures/DataArrayTexture.js';
/**
* Represents an array render target.
*
* @augments RenderTarget
*/
class RenderTargetArray extends RenderTarget {
/**
* Constructs a new 3D render target.
*
* @param {number} [width=1] - The width of the render target.
* @param {number} [height=1] - The height of the render target.
* @param {number} [depth=1] - The height of the render target.
* @param {RenderTarget~Options} [options] - The configuration object.
*/
constructor( width = 1, height = 1, depth = 1, options = {} ) {
super( width, height, options );
this.isRenderTargetArray = true;
this.depth = depth;
/**
* Overwritten with a different texture type.
*
* @type {DataArrayTexture}
*/
this.texture = new DataArrayTexture( null, width, height, depth );
this.texture.isRenderTargetTexture = true;
}
}
export { RenderTargetArray };

Xet Storage Details

Size:
971 Bytes
·
Xet hash:
1654d9c002205d948645ab60127c13c292f4e51e5a1ac7d9a705e29c95267604

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.