WebGLCubeRenderTarget

THREE.WebGLCubeRenderTarget
See theWebGLCubeRenderTarget companion object
class WebGLCubeRenderTarget(size: Double, options: UndefOr[WebGLRenderTargetOptions]) extends WebGLRenderTarget

A cube render target used in context of WebGLRenderer for cube map rendering. This is useful for creating dynamic cube maps for reflections, environment mapping, etc.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def clear(renderer: WebGLRenderer, color: Boolean, depth: Boolean, stencil: Boolean): Unit

Clears this cube render target.

Clears this cube render target.

Value parameters

color

Whether the color buffer should be cleared or not.

depth

Whether the depth buffer should be cleared or not.

renderer

The renderer.

stencil

Whether the stencil buffer should be cleared or not.

Attributes

Converts the given equirectangular texture to a cube map.

Converts the given equirectangular texture to a cube map.

Value parameters

renderer

The renderer.

texture

The equirectangular texture.

Attributes

Returns

A reference to this cube render target.

Inherited methods

Attributes

Inherited from:
WebGLRenderTarget
def dispose(): Unit

Attributes

Inherited from:
WebGLRenderTarget
def hasOwnProperty(v: String): Boolean

Attributes

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

Attributes

Inherited from:
Object

Attributes

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

Attributes

Inherited from:
Object
def setSize(width: Double, height: Double, depth: Double): Unit

Attributes

Inherited from:
WebGLRenderTarget
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

This flag can be used for type testing.

This flag can be used for type testing.

Attributes

Inherited fields

var depth: Double

The depth of the render target

The depth of the render target

Attributes

Inherited from:
WebGLRenderTarget
var depthBuffer: Boolean

Whether to allocate a depth buffer or not.

Whether to allocate a depth buffer or not.

Attributes

Inherited from:
WebGLRenderTarget
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

Inherited from:
WebGLRenderTarget
var height: Double

The height of the render target

The height of the render target

Attributes

Inherited from:
WebGLRenderTarget
val isWebGLRenderTarget: Boolean

This flag can be used for type testing.

This flag can be used for type testing.

Attributes

Inherited from:
WebGLRenderTarget
var multiview: Boolean

Whether this target is used for multiview rendering.

Whether this target is used for multiview rendering.

Attributes

Inherited from:
WebGLRenderTarget
var resolveDepthBuffer: Boolean

Whether to resolve the depth buffer or not.

Whether to resolve the depth buffer or not.

Attributes

Inherited from:
WebGLRenderTarget
var resolveStencilBuffer: Boolean

Whether to resolve the stencil buffer or not.

Whether to resolve the stencil buffer or not.

Attributes

Inherited from:
WebGLRenderTarget
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

Inherited from:
WebGLRenderTarget

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

Inherited from:
WebGLRenderTarget
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

Inherited from:
WebGLRenderTarget
var stencilBuffer: Boolean

Whether to allocate a stencil buffer or not.

Whether to allocate a stencil buffer or not.

Attributes

Inherited from:
WebGLRenderTarget

The texture representing the default color attachment.

The texture representing the default color attachment.

Attributes

Inherited from:
WebGLRenderTarget
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

Inherited from:
WebGLRenderTarget

A rectangular area representing the render target's viewport.

A rectangular area representing the render target's viewport.

Attributes

Inherited from:
WebGLRenderTarget
var width: Double

The width of the render target

The width of the render target

Attributes

Inherited from:
WebGLRenderTarget