This is the documentation for Enlighten.
struct Enlighten DirectionalLight CachedData
struct Enlighten::DirectionalLight::CachedData
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 |
|---|---|
Constructor. | |
Light filter by distance. | |
Return true if this light affects a system at the specified distance from the viewer. | |
Hash the light data. | |
Constructor. | |
Constructor. | |
IsIntersectingCluster(const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &) | Complex light V normalBoundingBox intersection test. |
Light v ClusterGroup Bounding box intersection test. | |
Simple Light V system BoundingBox intersection test. | |
Shares the four given samples. | |
Shade the given quad. | |
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