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: RenderTargetOptions

      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
depthBuffer: boolean
true
depthTexture: null | DepthTexture
null
height: number
isRenderTarget
isWebGLArrayRenderTarget
isWebGLRenderTarget
resolveDepthBuffer: boolean

Defines whether the depth buffer should be resolved when rendering into a multisampled render target.

true
resolveStencilBuffer: boolean

Defines whether the stencil buffer should be resolved when rendering into a multisampled render target. This property has no effect when .resolveDepthBuffer is set to false.

true
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
false
textures: DataArrayTexture[]
viewport: Vector4
width: number

Accessors

  • get texture(): DataArrayTexture
  • The texture property is overwritten with an instance of DataArrayTexture.

    Returns DataArrayTexture

  • set texture(value): void
  • Parameters

    Returns void

Methods

  • Adds a listener to an event type.

    Type Parameters

    • T extends "dispose"

    Parameters

    Returns void

  • 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

  • Removes a listener from an event type.

    Type Parameters

    • T extends "dispose"

    Parameters

    Returns void

  • Parameters

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

    Returns void