This is the documentation for Enlighten.

class Enlighten UE4 UE4InputLight

template<class RadialFalloffModelType>
class Enlighten::UE4::UE4InputLight

    └>Enlighten::InputLightBase    └>RadialFalloffModelType

A UE4 input light.

Classes

Name Description
Enlighten::UE4::UE4InputLight::CachedData

Cached data for a UE4InputLight.

Variables

Name Description
bool bSpotlight

True if the light should use spotlight falloff.

float CosOuterCone

Cosine of the outer cone half-angle. Used for spotlight falloff.

float CullAngle

Cone half-angle to use for culling the light, in radians.

Geo::v128 Direction

World space direction of the light.

const float * IESProfileTable

Pointer to lookup table for evaluating IES light profile.

Geo::v128 Intensity

RGB intensity of the light (linear space).

float InvCosConeDifference

cos(InnerConeAngle) - cos(OuterConeAngle). Used for spotlight falloff.

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

Radius of the light.

float SourceLength

Length of light source shape (i.e. tube light).

Functions

Name Description
DistanceFilter(float)

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

InputLightBase(eLightType)

Constructor.

InputLightBase(eLightType, bool)

Constructor.

UE4InputLight()

Constructor.


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.


Enlighten::InputLightBase::InputLightBase


protected: InputLightBase
(
    eLightType lightType
)


Constructor.


Enlighten::InputLightBase::InputLightBase


protected: InputLightBase
(
    eLightType lightType,
    bool hasChanged
)


Constructor.


Enlighten::UE4::UE4InputLight< RadialFalloffModelType >::UE4InputLight


public: UE4InputLight()


Constructor.