Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
struct Enlighten DirectionalLight CachedData

    This is the documentation for Enlighten.

    struct Enlighten DirectionalLight CachedData

    Sept 09, 2025

    struct Enlighten::DirectionalLight::CachedData

        └>Enlighten::InputLightBase

    Cached data for DirectionalLight.

    Variables

    Name Description
    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

    Name Description
    CachedData(DirectionalLight &, const void *)

    Constructor.

    DistanceFilter(float)

    Light filter by distance.

    DistanceFilter(float)

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

    Hash(Helpers::Hasher &, Geo::u32, Geo::u32)

    Hash the light data.

    InputLightBase(eLightType)

    Constructor.

    InputLightBase(eLightType, bool)

    Constructor.

    IsIntersectingCluster(const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &)

    Complex light V normalBoundingBox intersection test.

    IsIntersectingClusterGroup(const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &)

    Light v ClusterGroup Bounding box intersection test.

    IsIntersectingSystem(const Geo::v128 &, const Geo::v128 &)

    Simple Light V system BoundingBox intersection test.

    ShadeFourSamples(const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, Geo::u32, Geo::v128 &, Geo::v128 &, Geo::v128 &, Geo::v128 &)

    Shares the four given samples.

    ShadeQuad(const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, Geo::u32, Geo::u32)

    Shade the given quad.

    ShadeQuadIntensities(const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &)

    Shades the given quads.


    GEO_CONTROLLED_INLINE Enlighten::DirectionalLight::CachedData::CachedData


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


    Constructor.


    bool Enlighten::DirectionalLight::CachedData::DistanceFilter


    public: bool DistanceFilter
    (
        float viewDistance
    ) const


    Light filter by distance.


    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.


    void Enlighten::DirectionalLight::CachedData::Hash


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


    Hash the light data.


    Enlighten::InputLightBase::InputLightBase


    protected: InputLightBase
    (
        eLightType lightType
    )


    Constructor.


    Enlighten::InputLightBase::InputLightBase


    protected: InputLightBase
    (
        eLightType lightType,
        bool hasChanged
    )


    Constructor.


    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.


    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.


    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.


    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.


    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.


    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.

    , multiple selections available,

    Enlighten API 4.03 Documentation
    Results will update as you type.
    • class Enlighten BaseAlbedoHandler
    • class Enlighten BaseCubeMap
    • class Enlighten BaseDynamicObject
    • class Enlighten BaseEnvironment
    • class Enlighten BaseProbeSet
    • class Enlighten BaseSystem
    • class Enlighten BaseSystemSolutionSpace
    • class Enlighten BaseWorker
    • class Enlighten BoundingBox2D
    • class Enlighten BoxSpotlight
    • class Enlighten BoxVolume
    • class Enlighten CallableEnqueueFunctorCommand
    • class Enlighten ClusterAlbedoWorkspaceMaterialData
    • class Enlighten ClusterMaterialComponent
    • class Enlighten ClusterMaterials
    • class Enlighten ClusterProbeTransparencySampleData
    • class Enlighten ClusterRange
    • class Enlighten Command
    • class Enlighten ConstLightValueIterator
    • class Enlighten CopyAlbedoBufferInfo
    • class Enlighten CopyBounceBufferInfo
    • class Enlighten CopyEmissiveBufferInfo
    • class Enlighten CopyEmissiveEnvironmentInfo
    • class Enlighten CopyInputLightingBufferInfo
    • class Enlighten CopyProbeOutputInfo
    • class Enlighten CopyRawOutputInfo
    • class Enlighten CopyTransparencyBufferInfo
    • class Enlighten CopyVisibilityBufferInfo
    • class Enlighten CpuAlbedoHandler
    • class Enlighten CpuCubeMap
    • class Enlighten CpuDynamicObject
    • class Enlighten CpuEnvironment
    • class Enlighten CpuSystem
    • class Enlighten CpuSystemSolutionSpace
    • class Enlighten CpuTextureSamplerBase
    • class Enlighten CpuWorker
    • class Enlighten DefaultGeometryTransparencySampler
    • class Enlighten DefaultThreadGroup
    • class Enlighten DirectInputLightingParameters
    • class Enlighten DirectionalLight
      • struct Enlighten DirectionalLight CachedData
    • class Enlighten Dx11TextureUpdater
    • class Enlighten DynamicMaterialWorkspace
    • class Enlighten DynamicObject
    • class Enlighten EnlightenProfile
    • class Enlighten EnlightenTask
    • class Enlighten EntireProbeSetTask
    • class Enlighten FitModel
    • class Enlighten FixedTimeLimiter
    • class Enlighten Fp16CpuTextureSampler
    • class Enlighten FrustumLight
    • class Enlighten FunctorCommand
    • class Enlighten GenericColourBuffer
    • class Enlighten GeoClusterNode
    • class Enlighten GeoClusterNodeForest
    • class Enlighten GeoClusterNodeTree
    • class Enlighten GeoDirectionalPoint
    • class Enlighten GeoRayOrigin
    • class Enlighten GlTextureUpdater
    • class Enlighten GpuTextureWrapper
    • class Enlighten IAsyncTask
    • class Enlighten IBake
    • class Enlighten IBakeInputGeometryLightingNormals
    • class Enlighten IBakeInputGeometryTangents
    • class Enlighten IBakeInputGeometryUvs
    • class Enlighten IBakeInputLighting
    • class Enlighten IBakeInputMaterial
    • class Enlighten IBakeInputMeshLightingNormals
    • class Enlighten IBakeInputMeshTangents
    • class Enlighten IBakeInputMeshUvs
    • class Enlighten IBakeInputProperties
    • class Enlighten IBakeInputRayOriginPositions
    • class Enlighten IBakeInputRuntime
    • class Enlighten IBakeInputSystem
    • class Enlighten IBakeOutputProbeSet
    • class Enlighten IBakeOutputProbeSetVisibility
    • class Enlighten IBakeOutputSystemAO
    • class Enlighten IBakeOutputSystemDirect
    • class Enlighten IBakeOutputSystemFinalGather
    • class Enlighten IBakeOutputSystemIndirect
    • class Enlighten IBakeOutputSystemRadiosityNormal
      Calendars

    You‘re viewing this with anonymous access, so some content might be blocked.
    {"serverDuration": 10, "requestCorrelationId": "906b66cbee2b476d86cc1e7fcc13c364"}