Header menu logo Nu

FogType Type

The type of fog to utilize.

Union cases

Union case Description

ExponentialFog

Full Usage: ExponentialFog

Useful for a pervasive fog that include 'foreground' and 'background' based on FogDensity.

ExponentialSquaredFog

Full Usage: ExponentialSquaredFog

Useful for a distance for that mostly just includes 'background' based on FogDensity.

LinearFog

Full Usage: LinearFog

Useful for a finite, user-specifiable visibility cutoff distance from FogStart to FogStop.

Instance members

Instance member Description

this.Enumerate

Full Usage: this.Enumerate

Returns: int

Convert to an int tag that can be utilized by a shader.

Returns: int

this.IsExponentialFog

Full Usage: this.IsExponentialFog

Returns: bool
Returns: bool

this.IsExponentialSquaredFog

Full Usage: this.IsExponentialSquaredFog

Returns: bool
Returns: bool

this.IsLinearFog

Full Usage: this.IsLinearFog

Returns: bool
Returns: bool

Static members

Static member Description

FogType.Names

Full Usage: FogType.Names

Returns: string[]

The names of the fog types. TODO: generate these reflectively and memoized.

Returns: string[]

FogType.makeFromEnumeration enumeration

Full Usage: FogType.makeFromEnumeration enumeration

Parameters:
    enumeration : int

Returns: FogType

Make a fog type from an enumeration value that can be utilized by a shader.

enumeration : int
Returns: FogType

Type something to start searching.