Versions Compared

Key

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

struct Enlighten::UE4::UnrealDirectionalLight::CachedData

    └>Enlighten::InputLightBase

Cached data for DirectionalLight.

Variables

NameDescription
Geo::v128 m_Colour

RGB intensity of the light (linear space).

Geo::v128 m_Direction

World space position of light.

bool m_HasChanged

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

Geo::u32 m_HasVisibility

Has visisibility data?

const eLightType m_LightType

Type of input light corresponding to an eLightType enum value.

float m_MaximumDistance

Distance from the camera changing the light to another(Refer to Enlighten::DirectionalLight).

Geo::u64 m_Padding

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

const Geo::u8 * m_VisibilityData

Visibility data.

Geo::s64 m_VisibilityDataU64

Visibility data.

Functions


Anchor
acc8a575d1a9a8b1f0edcd87b9392b908
acc8a575d1a9a8b1f0edcd87b9392b908

GEO_CONTROLLED_INLINE Enlighten::UE4::UnrealDirectionalLight::CachedData::CachedData

...

public: GEO_CONTROLLED_INLINE CachedData
(
    const UnrealDirectionalLight & directionalLight,
    const void * perDusterVisibility
)

...

Constructor.


Anchor
ae50eec797cbbe6a302be0d2e1e07901f
ae50eec797cbbe6a302be0d2e1e07901f

GEO_CONTROLLED_INLINE bool Enlighten::UE4::UnrealDirectionalLight::CachedData::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
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
a8afca99c209b9a8dddc0c9a1e4e31b90
a8afca99c209b9a8dddc0c9a1e4e31b90

void Enlighten::UE4::UnrealDirectionalLight::CachedData::Hash

...

public: void Hash
(
    Helpers::Hasher & hash,
    Geo::u32 clusterVisSize,
    Geo::u32 quadVisSize
)

...

Hash the light data.


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

GEO_CONTROLLED_INLINE bool Enlighten::UE4::UnrealDirectionalLight::CachedData::IsIntersectingCluster

...

public: GEO_CONTROLLED_INLINE bool IsIntersectingCluster
(
    const Geo::v128 & bbMin,
    const Geo::v128 & bbMax,
    const Geo::v128 & minNormalFlipped,
    const Geo::v128 & maxNormalFlipped
) const

...

Complex light V normalBoundingBox intersection test.


Anchor
a0e070672c076e87129ae34a049a73c33
a0e070672c076e87129ae34a049a73c33

GEO_CONTROLLED_INLINE bool Enlighten::UE4::UnrealDirectionalLight::CachedData::IsIntersectingClusterGroup

...

public: GEO_CONTROLLED_INLINE bool IsIntersectingClusterGroup
(
    const Geo::v128 & bbMin,
    const Geo::v128 & bbMax,
    const Geo::v128 & minNormalFlipped,
    const Geo::v128 & maxNormalFlipped
) const

...

Light v ClusterGroup Bounding box intersection test.


Anchor
af9ed235b329c914919f96341d4152f02
af9ed235b329c914919f96341d4152f02

GEO_CONTROLLED_INLINE bool Enlighten::UE4::UnrealDirectionalLight::CachedData::IsIntersectingSystem

...

public: GEO_CONTROLLED_INLINE bool IsIntersectingSystem
(
    const Geo::v128 & bbMin,
    const Geo::v128 & bbMax
) const

...

Simple Light V system BoundingBox intersection test.


Anchor
ad4403a34fa687e49fc544a08916555b6
ad4403a34fa687e49fc544a08916555b6

GEO_CONTROLLED_INLINE void Enlighten::UE4::UnrealDirectionalLight::CachedData::ShadeFourSamples

...

public: GEO_CONTROLLED_INLINE void ShadeFourSamples
(
    const Geo::v128 & positionsX,
    const Geo::v128 & positionsY,
    const Geo::v128 & positionsZ,
    const Geo::v128 & normalsX,
    const Geo::v128 & normalsY,
    const Geo::v128 & normalsZ,
    Geo::u32 sampleIdx,
    Geo::v128 & colourOut0,
    Geo::v128 & colourOut1,
    Geo::v128 & colourOut2,
    Geo::v128 & colourOut3
) const

...

Shares the four given samples.


Anchor
a7f43cdd840153810c27d8ec860131412
a7f43cdd840153810c27d8ec860131412

GEO_CONTROLLED_INLINE Geo::v128 Enlighten::UE4::UnrealDirectionalLight::CachedData::ShadeQuad

...

public: GEO_CONTROLLED_INLINEGeo::v128 ShadeQuad
(
    const Geo::v128 & positionsX,
    const Geo::v128 & positionsY,
    const Geo::v128 & positionsZ,
    const Geo::v128 & normalsX,
    const Geo::v128 & normalsY,
    const Geo::v128 & normalsZ,
    Geo::u32 clusterIdx,
    Geo::u32 quadIdx
) const

...

Shade the given quad.


Anchor
a2a6e7b7b8420a7a02da2dfcf20713711
a2a6e7b7b8420a7a02da2dfcf20713711

GEO_CONTROLLED_INLINE Geo::v128 Enlighten::UE4::UnrealDirectionalLight::CachedData::ShadeQuadIntensities

...

public: GEO_CONTROLLED_INLINEGeo::v128 ShadeQuadIntensities
(
    const Geo::v128 & positionsX,
    const Geo::v128 & positionsY,
    const Geo::v128 & positionsZ,
    const Geo::v128 & normalsX,
    const Geo::v128 & normalsY,
    const Geo::v128 & normalsZ,
    const Geo::v128 & visibilityMask
) const

...

Shades the given quads.