This is the documentation for Enlighten.
The QuickFlatClusterShader class is responsible for unpacking a single normal during the constructor call and then later it will then iterate through a given set of lights shading the extracted normal.
Positions are irrelevant.
| Name | Description |
|---|---|
| QuadShader(const Geo::u32, const Geo::u32) | Constructor. |
| QuadShader(const void *, Geo::u32, const Geo::u32, const TransformedBounds< TransformOp > &, const TransformOp &) | Constructor. |
| QuickFlatClusterShader(const void *, const Geo::u32, const Geo::u32, const TransformOp &) | Constructor. |
| ShadeLights(const SortedLights *) | Shade the lights in a SortedLights object. |
| TestVolumeCoverage(const VolumeType &, const Geo::Matrix &) | Test the coverage of the volume over the quad. |
| UpdateClusterIdx(Geo::u32) | Set the cluster index. |
| UpdateQuadIdx(Geo::u32) | Set the quad index. |
| Name | Description |
|---|---|
| Geo::u32 m_ClusterIdx | Cluster index. |
| Geo::v128 m_NormalsX | X components of the normals of the quad. |
| Geo::v128 m_NormalsY | Y components of the normals of the quad. |
| Geo::v128 m_NormalsZ | Z components of the normals of the quad. |
| Geo::v128 m_PositionsX | X co-ordinates of the quad. |
| Geo::v128 m_PositionsY | Y co-ordinates of the quad. |
| Geo::v128 m_PositionsZ | Z co-ordinates of the quad. |
| Geo::u32 m_QuadIdx | Quad index. |
public: GEO_CONTROLLED_INLINE QuadShader
(
const Geo::u32 clusterIdx,
const Geo::u32 quadIdx
)
Constructor.
public: GEO_CONTROLLED_INLINE QuadShader
(
const void * quadDataPtr,
Geo::u32 clusterIdx,
const Geo::u32 quadIdx,
const TransformedBounds< TransformOp > & clusterBounds,
const TransformOp & transform
)
Constructor.
public: GEO_CONTROLLED_INLINE QuickFlatClusterShader
(
const void * quadDataPtr,
const Geo::u32 clusterIdx,
const Geo::u32 quadIdx,
const TransformOp & transform
)
Constructor.
public: GEO_CONTROLLED_INLINEGeo::v128 ShadeLights
(
const SortedLights * sortedLights
) const
Shade the lights in a SortedLights object.
public: GEO_CONTROLLED_INLINEGeo::v128 TestVolumeCoverage
(
const VolumeType & volume,
const Geo::Matrix & volumeInvTransform
) const
Test the coverage of the volume over the quad.
public: GEO_CONTROLLED_INLINE void UpdateClusterIdx
(
Geo::u32 idx
)
Set the cluster index.
public: GEO_CONTROLLED_INLINE void UpdateQuadIdx
(
Geo::u32 idx
)
Set the quad index.