WebGLRenderTarget

THREE.WebGLRenderTarget
See theWebGLRenderTarget companion object
class WebGLRenderTarget(options: UndefOr[WebGLRenderTargetOptions]) extends Object

WebGL render target for off-screen rendering

Attributes

Companion
object
Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def dispose(): Unit
def setSize(width: Double, height: Double, depth: Double): Unit

Inherited methods

def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

var depth: Double

The depth of the render target

The depth of the render target

Attributes

var depthBuffer: Boolean

Whether to allocate a depth buffer or not.

Whether to allocate a depth buffer or not.

Attributes

var depthTexture: UndefOr[DepthTexture]

Instead of saving the depth in a renderbuffer, a texture can be used instead which is useful for further processing e.g. in context of post-processing.

Instead of saving the depth in a renderbuffer, a texture can be used instead which is useful for further processing e.g. in context of post-processing.

Attributes

var height: Double

The height of the render target

The height of the render target

Attributes

val isWebGLRenderTarget: Boolean

This flag can be used for type testing.

This flag can be used for type testing.

Attributes

var multiview: Boolean

Whether this target is used for multiview rendering.

Whether this target is used for multiview rendering.

Attributes

var resolveDepthBuffer: Boolean

Whether to resolve the depth buffer or not.

Whether to resolve the depth buffer or not.

Attributes

var resolveStencilBuffer: Boolean

Whether to resolve the stencil buffer or not.

Whether to resolve the stencil buffer or not.

Attributes

var samples: Double

The number of MSAA samples. A value of 0 disables MSAA.

The number of MSAA samples. A value of 0 disables MSAA.

Attributes

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

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

Attributes

var scissorTest: Boolean

Indicates whether the scissor test should be enabled when rendering into this render target or not.

Indicates whether the scissor test should be enabled when rendering into this render target or not.

Attributes

var stencilBuffer: Boolean

Whether to allocate a stencil buffer or not.

Whether to allocate a stencil buffer or not.

Attributes

The texture representing the default color attachment.

The texture representing the default color attachment.

Attributes

var textures: Array[Texture]

An array of textures. Each color attachment is represented as a separate texture. Has at least a single entry for the default color attachment.

An array of textures. Each color attachment is represented as a separate texture. Has at least a single entry for the default color attachment.

Attributes

A rectangular area representing the render target's viewport.

A rectangular area representing the render target's viewport.

Attributes

var width: Double

The width of the render target

The width of the render target

Attributes