Header menu logo Nu

LightType Type

Type of light.

Union cases

Union case Description

CascadedLight

Full Usage: CascadedLight

DirectionalLight

Full Usage: DirectionalLight

PointLight

Full Usage: PointLight

SpotLight(ConeInner, ConeOuter)

Full Usage: SpotLight(ConeInner, ConeOuter)

Parameters:
    ConeInner : single
    ConeOuter : single

ConeInner : single
ConeOuter : single

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.IsCascadedLight

Full Usage: this.IsCascadedLight

Returns: bool
Returns: bool

this.IsDirectionalLight

Full Usage: this.IsDirectionalLight

Returns: bool
Returns: bool

this.IsPointLight

Full Usage: this.IsPointLight

Returns: bool
Returns: bool

this.IsSpotLight

Full Usage: this.IsSpotLight

Returns: bool
Returns: bool

Static members

Static member Description

LightType.Names

Full Usage: LightType.Names

Returns: string[]

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

Returns: string[]

LightType.makeFromEnumeration enumeration

Full Usage: LightType.makeFromEnumeration enumeration

Parameters:
    enumeration : int

Returns: LightType

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

enumeration : int
Returns: LightType

LightType.shouldShadowInterior lightType

Full Usage: LightType.shouldShadowInterior lightType

Parameters:
Returns: bool

Check that the light should shadow interior surfaces with the given shadowIndexInfoOpt information.

lightType : LightType
Returns: bool

Type something to start searching.