Versions Compared

Key

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

struct Enlighten::ShadeQuadOperator

Visitor operator used to shade the quad for each light type.

Variables

NameDescription
const Geo::u32 & m_ClusterIdx

Input quad data.

Geo::v128 m_Colour

Result colour.

const Geo::v128 & m_NormalsX

Input quad data.

const Geo::v128 & m_NormalsY

Input quad data.

const Geo::v128 & m_NormalsZ

Input quad data.

const Geo::v128 & m_PositionsX

Input quad data.

const Geo::v128 & m_PositionsY

Input quad data.

const Geo::v128 & m_PositionsZ

Input quad data.

const Geo::u32 & m_QuadIdx

Input quad data.

Functions


Anchor
ab866eb9cb57c6f6559457193b024f3f5
ab866eb9cb57c6f6559457193b024f3f5

GEO_CONTROLLED_INLINE void Enlighten::ShadeQuadOperator::operator()

...

public: GEO_CONTROLLED_INLINE void operator()
(
    const LightType & light
)

...

Shades the quad.


Anchor
ae5e43f9b4ec1be9be79c2424e3875897
ae5e43f9b4ec1be9be79c2424e3875897

GEO_CONTROLLED_INLINE Enlighten::ShadeQuadOperator::ShadeQuadOperator

...

public: GEO_CONTROLLED_INLINE ShadeQuadOperator
(
    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::u32 & clusterIdx,
    const Geo::u32 & quadIdx
)

...

Constructor.