Versions Compared

Key

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

struct Enlighten::ShadeFourSamplesOperator

Visitor operator used to shade four samples for each light type.

Variables

NameDescription
Geo::v128 m_Colour0

Result colours.

Geo::v128 m_Colour1

Result colours.

Geo::v128 m_Colour2

Result colours.

Geo::v128 m_Colour3

Result colours.

const Geo::v128 & m_NormalsX

Input sample data.

const Geo::v128 & m_NormalsY

Input sample data.

const Geo::v128 & m_NormalsZ

Input sample data.

const Geo::v128 & m_PositionsX

Input sample data.

const Geo::v128 & m_PositionsY

Input sample data.

const Geo::v128 & m_PositionsZ

Input sample data.

const Geo::u32 & m_SampleIdx

Input sample data.

Functions


Anchor
ad32698186dff477aeda542d6331e0bad
ad32698186dff477aeda542d6331e0bad

GEO_CONTROLLED_INLINE void Enlighten::ShadeFourSamplesOperator::operator()

...

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

...

Shades all four samples.


Anchor
abb4e800733a5e721c2f363cb3f050243
abb4e800733a5e721c2f363cb3f050243

GEO_CONTROLLED_INLINE Enlighten::ShadeFourSamplesOperator::ShadeFourSamplesOperator

...

public: GEO_CONTROLLED_INLINE ShadeFourSamplesOperator
(
    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 & sampleIdx
)

...

Constructor.