This type of render target represents an array of textures.

Hierarchy (view full)

Constructors

  • Creates a new WebGLArrayRenderTarget.

    Parameters

    • Optionalwidth: number

      the width of the render target, in pixels. Default is 1.

    • Optionalheight: number

      the height of the render target, in pixels. Default is 1.

    • Optionaldepth: number

      the depth/layer count of the render target. Default is 1.

    • Optionaloptions: WebGLRenderTargetOptions

      optional object that holds texture parameters for an auto-generated target texture and depthBuffer/stencilBuffer booleans. See WebGLRenderTarget for details.

    Returns WebGLArrayRenderTarget

Properties

depth: number

The depth of the render target.

depthBuffer: boolean
true
depthTexture: DepthTexture
null
height: number
isRenderTarget
isWebGLArrayRenderTarget
isWebGLRenderTarget
samples: number

Defines the count of MSAA samples. Can only be used with WebGL 2. Default is 0.

0
scissor: Vector4
scissorTest: boolean
false
stencilBuffer: boolean
true

The texture property is overwritten with an instance of DataArrayTexture.

viewport: Vector4
width: number

Methods

  • Returns this

  • Fire an event type.

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & {
          dispose: {};
      }[T]

      The event that gets fired.

    Returns void

  • Returns void

  • Checks if listener is added to an event type.

    Type Parameters

    • T extends "dispose"

    Parameters

    Returns boolean

  • Type Parameters

    • T extends string

    Parameters

    Returns boolean

  • Parameters

    • width: number
    • height: number
    • Optionaldepth: number

    Returns void