Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Enlighten::Spotlight

    └>Enlighten::InputLightBase

Spotlight class used by extended input lighting.

Classes

NameDescription
Enlighten::Spotlight::CachedData

Cached data for spotlights.

Variables

NameDescription
float m_ConeAngle

The cone angle of the spot light in radians; Measures the angle swept by the entire cone.

float m_CutOff

The radius outside which intensity is clamped to zero; specified in Enlighten units.

Geo::v128 m_Direction

World space direction of spotlight.

const InputLightFalloffTable * m_FalloffTable

Falloff table.

bool m_HasChanged

Whether the light has changed since it was last given to the extended direct lighting api.

float m_InnerConeAngle

The inner cone angle of the spot light in radians.

Geo::v128 m_Intensity

RGB intensity of the light (linear space).

const eLightType m_LightType

Type of input light corresponding to an eLightType enum value.

Geo::u64 m_Padding

Unused (this class is usually extended by one that starts with multiple v128s)

Geo::v128 m_Position

World space position of spotlight.

float m_Radius

The radius inside which intensity is clamped to the given value; specified in Enlighten units.

Functions

NameDescription
DistanceFilter(float)

Return true if this light affects a system at the specified distance from the viewer.

InputLightBase(eLightType)

Constructor.

InputLightBase(eLightType, bool)

Constructor.

Spotlight()

Constructor.


Anchor
a8c141f069d3b871bbe1903146fb8808d
a8c141f069d3b871bbe1903146fb8808d

GEO_CONTROLLED_INLINE bool Enlighten::InputLightBase::DistanceFilter

...

public: GEO_CONTROLLED_INLINE bool DistanceFilter
(
    float viewDistance
) const

...

Return true if this light affects a system at the specified distance from the viewer.


Anchor
a1e800e092db44a3676d766c6b1317085
a1e800e092db44a3676d766c6b1317085

Enlighten::InputLightBase::InputLightBase

...

protected: InputLightBase
(
    eLightType lightType
)

...

Constructor.


Anchor
a8f8299daadfb542d3d6821951b936188
a8f8299daadfb542d3d6821951b936188

Enlighten::InputLightBase::InputLightBase

...

protected: InputLightBase
(
    eLightType lightType,
    bool hasChanged
)

...

Constructor.


Anchor
ae13385e70f0f2f850504f458b6c77f89
ae13385e70f0f2f850504f458b6c77f89

Enlighten::Spotlight::Spotlight

...

public: Spotlight()

...

Constructor.