Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WebGLMultisampleRenderTarget

A special render target that can be used to utilize multi-sampled renderbuffers. Heads up: WebGLMultisampleRenderTarget can only be used with a WebGL 2 rendering context.

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 isWebGLMultisampleRenderTarget

isWebGLMultisampleRenderTarget: true

Readonly isWebGLRenderTarget

isWebGLRenderTarget: true

samples

samples: number

Specifies the number of samples to be used for the renderbuffer storage. However, the maximum supported size for multisampling is platform dependent and defined via gl.MAX_SAMPLES. WebGLRenderTarget properties are available on this class.

default

4

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