Fog

THREE.Fog
See theFog companion object
class Fog extends Object

This class can be used to define a linear fog that grows linearly denser with the distance.

val scene = new Scene()
scene.fog = Fog(0xcccccc, 10, 15)

Attributes

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

Members list

Value members

Concrete methods

def jsClone(): Fog

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 far: Double

The maximum distance at which fog stops being calculated and applied. Objects that are more than far units away from the active camera won't be affected by fog.

The maximum distance at which fog stops being calculated and applied. Objects that are more than far units away from the active camera won't be affected by fog.

Attributes

val isFog: 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

var near: Double

The minimum distance to start applying fog. Objects that are less than near units from the active camera won't be affected by fog.

The minimum distance to start applying fog. Objects that are less than near units from the active camera won't be affected by fog.

Attributes