RenderTargetParams
ts
type RenderTargetParams = Partial<BaseTextureParams> & {
depthBuffer?: boolean;
width?: number;
height?: number;
generateMipmaps?: boolean;
};Type Declaration
| Name | Type | Description |
|---|---|---|
depthBuffer? | boolean | Whether to attach a depth buffer to the render target. Default false |
width? | number | The width of the texture in pixels. Default gl.canvas.width |
height? | number | The height of the texture in pixels. Default gl.canvas.height |
generateMipmaps? | boolean | Whether to automatically generate mipmaps for this texture. Default false |