Skip to content

RenderTargetParams ​

ts
type RenderTargetParams = Partial<BaseTextureParams> & {
  depthBuffer?: boolean;
  width?: number;
  height?: number;
  generateMipmaps?: boolean;
};

Type Declaration ​

NameTypeDescription
depthBuffer?booleanWhether to attach a depth buffer to the render target. Default false
width?numberThe width of the texture in pixels. Default gl.canvas.width
height?numberThe height of the texture in pixels. Default gl.canvas.height
generateMipmaps?booleanWhether to automatically generate mipmaps for this texture. Default false

See ​

BaseTextureParams

Released under the MIT License.