This is the documentation for Enlighten.
struct Enlighten UE4 RectLight CachedData
struct Enlighten::UE4::RectLight::CachedData
Cached data for RectLight.
Variables
Name | Description |
|---|---|
float BarnDoorCosAngle | Cosine of the angle of the barn doors. |
float BarnDoorLength | Length of the barn doors. |
Geo::v128 Direction_PlaneDistance | XYZ: World space x axis of light space. W: Distance to plane which passes through Position. |
Geo::u32 HasVisibilityData | Has visibility data? |
Geo::v128 Intensity | RGB intensity. |
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. |
Geo::v128 RightDirection_InvRadius | XYZ: World space y axis of light space. W: 1 / attenuation radius. |
float SourceLength | Half height of the rectangle. |
float SourceRadius | Half width of the rectangle. |
Geo::v128 UpDirection_SqrRadius | XYZ: World space y axis of light space. W: squared attenuation radius. |
const Geo::u8 * VisibilityData | Visibility data. |
Geo::u64 VisibilityData64 | Visibility data. |
Functions
Name | Description |
|---|---|
Constructor. | |
Return true if this light affects a system at the specified distance from the viewer. | |
Hash all members of the light data. | |
Constructor. | |
Constructor. | |
Test if the light intersects the specified bounding box. | |
IsIntersectingCluster(const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &) | Test if the lights intersects a single cluster. Additional normal vectors enable culling against direction. |
Test if the lights intersects a group of clusters bounding box. Additional normal vectors enable culling against direction. | |
Test if the light intersects the systems bounding box. | |
Shade the four samples and return the individual colours. | |
Shade the four samples and return the average as a single colour. | |
Function to shade four point with 4 normals. |
Enlighten::UE4::RectLight::CachedData::CachedData
public: CachedData
(
const RectLight & rectLight,
const void * perDusterVisibility
)