ludus::foundation::math::LinearlyTransformedCosinePolygon¶
Ludus Wiki · API overview · Browse API
Struct
An LTC restricted to a convex polygon, prepared for integration and sampling at one shading point.
Produced by TryPrepareLinearlyTransformedCosinePolygon; treat the fields as read-only.
Declared in modules/foundation/math/include/ludus/foundation/math/linearly_transformed_cosine.hpp
#include <ludus/foundation/math/linearly_transformed_cosine.hpp>
struct ludus::foundation::math::LinearlyTransformedCosinePolygon final
Fields¶
TransformedPolygon¶
ProjectedSolidAnglePolygon ludus::foundation::math::LinearlyTransformedCosinePolygon::TransformedPolygon {}
The polygon transformed by M^-1, clipped to z >= 0 and prepared for projected solid angle sampling. Its ProjectedSolidAngle is pi times the LTC's integral over the polygon (Heitz et al. 2016, Equation 3); zero means the clip is empty and the technique must be disabled (Peters 2021, section 4.1).
Related types: ProjectedSolidAnglePolygon
Declared in modules/foundation/math/include/ludus/foundation/math/linearly_transformed_cosine.hpp
Distribution¶
LinearlyTransformedCosine ludus::foundation::math::LinearlyTransformedCosinePolygon::Distribution {}
The distribution the polygon was prepared with.
Related types: LinearlyTransformedCosine
Declared in modules/foundation/math/include/ludus/foundation/math/linearly_transformed_cosine.hpp