Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WebGLRenderTarget

A render target is a buffer where the video card draws pixels for a scene that is being rendered in the background.r It is used in different effects, such as applying postprocessing to a rendered image before displaying it on the screen.

Hierarchy

Index

Constructors

constructor

Properties

depth

depth: number

depthBuffer

depthBuffer: boolean

Renders to the depth buffer. Default is true.

depthTexture

depthTexture: I3JS.DepthTexture

If set, the scene depth will be rendered to this texture. Default is null.

height

height: number

The height of the render target.

Readonly isWebGLRenderTarget

isWebGLRenderTarget: true

scissor

scissor: I3JS.Vector4

A rectangular area inside the render target's viewport. Fragments that are outside the area will be discarded.

scissorTest

scissorTest: boolean

Indicates whether the scissor test is active or not.

stencilBuffer

stencilBuffer: boolean

Renders to the stencil buffer. Default is false.

texture

This texture instance holds the rendered pixels. Use it as input for further processing.

uuid

uuid: string

viewport

viewport: I3JS.Vector4

The viewport of this render target.

width

width: number

The width of the render target.

Methods

addEventListener

clone

copy

dispatchEvent

  • dispatchEvent(event: Event): void

dispose

  • dispose(): void

hasEventListener

removeEventListener

setSize

  • setSize(width: number, height: number, depth?: number): void

setTexture

Generated using TypeDoc