UNPKG

1.14 kBTypeScriptView Raw
1import { RenderTargetOptions } from "../core/RenderTarget.js";
2import { Data3DTexture } from "../textures/Data3DTexture.js";
3import { WebGLRenderTarget } from "./WebGLRenderTarget.js";
4
5/**
6 * Represents a three-dimensional render target.
7 */
8export class WebGL3DRenderTarget extends WebGLRenderTarget {
9 /**
10 * Creates a new WebGL3DRenderTarget.
11 *
12 * @param width the width of the render target, in pixels. Default is `1`.
13 * @param height the height of the render target, in pixels. Default is `1`.
14 * @param depth the depth of the render target. Default is `1`.
15 * @param options optional object that holds texture parameters for an auto-generated target texture and
16 * depthBuffer/stencilBuffer booleans. See {@link WebGLRenderTarget} for details.
17 */
18 constructor(width?: number, height?: number, depth?: number, options?: RenderTargetOptions);
19
20 textures: Data3DTexture[];
21
22 /**
23 * The texture property is overwritten with an instance of {@link Data3DTexture}.
24 */
25 get texture(): Data3DTexture;
26 set texture(value: Data3DTexture);
27
28 readonly isWebGL3DRenderTarget: true;
29}