Buckets:
| import { WebGLRenderTarget } from './WebGLRenderTarget.js'; | |
| import { Data3DTexture } from '../textures/Data3DTexture.js'; | |
| /** | |
| * A 3D render target used in context of {@link WebGLRenderer}. | |
| * | |
| * @augments WebGLRenderTarget | |
| */ | |
| class WebGL3DRenderTarget extends WebGLRenderTarget { | |
| /** | |
| * 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 flag can be used for type testing. | |
| * | |
| * @type {boolean} | |
| * @readonly | |
| * @default true | |
| */ | |
| this.isWebGL3DRenderTarget = true; | |
| this.depth = depth; | |
| /** | |
| * Overwritten with a different texture type. | |
| * | |
| * @type {Data3DTexture} | |
| */ | |
| this.texture = new Data3DTexture( null, width, height, depth ); | |
| this.texture.isRenderTargetTexture = true; | |
| } | |
| } | |
| export { WebGL3DRenderTarget }; | |
Xet Storage Details
- Size:
- 1.13 kB
- Xet hash:
- f6b40936840c6f027f95f95bc661af84d426719e6c5c42b97d9f77a4fd15581d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.