Versions Compared

Key

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

class Enlighten::UE4::RectLight

    └>Enlighten::InputLightBase

A UE4 Rect Light.

The implementation matches the UE4 shader.

Classes

NameDescription
Enlighten::UE4::RectLight::CachedData

Cached data for RectLight.

Variables

NameDescription
float BarnDoorCosAngle

Cosine of the angle of the barn doors.

float BarnDoorLength

Length of the barn doors.

Geo::v128 Direction

XYZ: World space x axis of light space.

Geo::v128 Intensity

RGB intensity.

bool m_HasChanged

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

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 Position

World space position of the light.

float Radius

attenuation radius

Geo::v128 RightDirection

XYZ: World space y axis of light space.

float SourceLength

Half height of the rectangle.

float SourceRadius

Half width of the rectangle.

Functions

NameDescription
DistanceFilter(float)

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

InputLightBase(eLightType, bool)

Constructor.

InputLightBase(eLightType)

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
a8f8299daadfb542d3d6821951b936188
a8f8299daadfb542d3d6821951b936188

Enlighten::InputLightBase::InputLightBase

...

protected: InputLightBase
(
    eLightType lightType,
    bool hasChanged
)

...

Constructor.


Anchor
a1e800e092db44a3676d766c6b1317085
a1e800e092db44a3676d766c6b1317085

Enlighten::InputLightBase::InputLightBase

...

protected: InputLightBase
(
    eLightType lightType
)

...

Constructor.