Versions Compared

Key

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

struct Enlighten::DirectionalLight::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_HasVisibilityData

Has visisibility data?

const eLightType m_LightType

Type of input light corresponding to an eLightType enum value.

float m_MinimumDistance

Distance from the camera changing the light to another(Refer to UnrealDirectionalLight).

Geo::u64 m_Padding

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

VisibilityBuffer m_VisibilityBuffer

Visibility buffer.

Functions


Anchor
a0bfab6bb152f723813287e3589ca648f
a0bfab6bb152f723813287e3589ca648f

GEO_CONTROLLED_INLINE Enlighten::DirectionalLight::CachedData::CachedData

...

public: GEO_CONTROLLED_INLINE CachedData
(
    DirectionalLight & dirLight,
    const void * visibility
)

...

Constructor.


Anchor
a927c6125b18cefd4ee15e35ebea028c9
a927c6125b18cefd4ee15e35ebea028c9

bool Enlighten::DirectionalLight::CachedData::DistanceFilter

...

public: bool DistanceFilter
(
    float viewDistance
) const

...

Light filter by distance.


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

void Enlighten::DirectionalLight::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
a97a4277d4f56bf4f4768035b706ba94d
a97a4277d4f56bf4f4768035b706ba94d

GEO_CONTROLLED_INLINE bool Enlighten::DirectionalLight::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
ad75db13edc0888be79681a5c4cfc5dab
ad75db13edc0888be79681a5c4cfc5dab

GEO_CONTROLLED_INLINE bool Enlighten::DirectionalLight::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
aace8fa331c0627d9fdddfe76adf360d8
aace8fa331c0627d9fdddfe76adf360d8

GEO_CONTROLLED_INLINE bool Enlighten::DirectionalLight::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
a338b95a084a00474401b36b521a2c196
a338b95a084a00474401b36b521a2c196

GEO_CONTROLLED_INLINE void Enlighten::DirectionalLight::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
a6cd1abf61c9d373cfc6ee9e635468d9b
a6cd1abf61c9d373cfc6ee9e635468d9b

GEO_CONTROLLED_INLINE Geo::v128 Enlighten::DirectionalLight::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
a5566c0545d887dd829f5e03f734b03bb
a5566c0545d887dd829f5e03f734b03bb

GEO_CONTROLLED_INLINE Geo::v128 Enlighten::DirectionalLight::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.