Represents a three-dimensional render target.

Hierarchy (view full)

Constructors

  • Creates a new WebGL3DRenderTarget.

    Parameters

    • Optional width: number

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

    • Optional height: number

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

    • Optional depth: number

      the depth of the render target. Default is 1.

    • Optional options: WebGLRenderTargetOptions

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

    Returns WebGL3DRenderTarget

Properties

depth: number

The depth of the render target.

depthBuffer: boolean

Default

true
depthTexture: DepthTexture

Default

null
height: number
isRenderTarget: true
isWebGL3DRenderTarget: true
isWebGLRenderTarget: true
samples: number

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

Default

0
scissor: Vector4
scissorTest: boolean

Default

false
stencilBuffer: boolean

Default

true
texture: Data3DTexture

The texture property is overwritten with an instance of Data3DTexture.

viewport: Vector4
width: number

Methods

  • Adds a listener to an event type.

    Type Parameters

    • T extends "dispose"

    Parameters

    Returns void

  • Type Parameters

    • T extends string

    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

  • Type Parameters

    • T extends string

    Parameters

    Returns boolean

  • Parameters

    • width: number
    • height: number
    • Optional depth: number

    Returns void