Class WebGLMultipleRenderTargets

THREE.WebGLMultipleRenderTargets has been deprecated and will be removed in r172. Use THREE.WebGLRenderTarget and set the "count" parameter to enable MRT.

Hierarchy (view full)

Constructors

  • Parameters

    • Optionalwidth: number

      The width of the render target.

    • Optionalheight: number

      The height of the render target.

    • Optionalcount: number

      The number of render targets.

    • Optionaloptions: RenderTargetOptions

      object that holds texture parameters for an auto-generated target texture and depthBuffer/stencilBuffer booleans. For an explanation of the texture parameters see Texture.

    Returns WebGLMultipleRenderTargets

    THREE.WebGLMultipleRenderTargets has been deprecated and will be removed in r172. Use THREE.WebGLRenderTarget and set the "count" parameter to enable MRT.

Properties

isWebGLMultipleRenderTargets: true
isWebGLRenderTarget: true
isRenderTarget: true
width: number
height: number
depth: number
scissor: Vector4
scissorTest: boolean
false
viewport: Vector4
textures: Texture[][]
depthBuffer: boolean
true
stencilBuffer: boolean
false
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
depthTexture: DepthTexture
null
samples: number

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

0

Accessors

  • get texture(): TTexture
  • Returns TTexture

  • set texture(value): void
  • Parameters

    Returns void

Methods

  • Parameters

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

    Returns void

  • Fire an event type.

    Type Parameters

    • T extends "dispose"

    Parameters

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

      The event that gets fired.

    Returns void