FogExp2

THREE.FogExp2
See theFogExp2 companion object
class FogExp2 extends Object

This class can be used to define an exponential squared fog, which gives a clear view near the camera and a faster than exponentially densening fog farther from the camera.

val scene = new Scene()
scene.fog = FogExp2(0xcccccc, 0.002)

Attributes

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

Members list

Value members

Concrete methods

def jsClone(): FogExp2

Returns a new fog with copied values from this instance.

Returns a new fog with copied values from this instance.

Attributes

def toJSON(): Object

Serializes the fog into JSON.

Serializes the fog into JSON.

Attributes

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 color: Color

The fog's color

The fog's color

Attributes

var density: Double

Defines how fast the fog will grow dense

Defines how fast the fog will grow dense

Attributes

val isFogExp2: Boolean

This flag can be used for type testing

This flag can be used for type testing

Attributes

var name: String

The name of the fog

The name of the fog

Attributes