LightSample typedef
LightSample = ({List<Vector3> ? corners, Vector3 direction, Vector3? ltc, double nDotH, double nDotL, Vector3 radiance, double vDotH})
What SampleLight produces.
Implementation
typedef LightSample = ({
Vector3 direction,
Vector3 radiance,
double nDotL,
double nDotH,
double vDotH,
// `L7`: the GGX lobe integrated over a rectangle, its norm and Fresnel
// term, when the model binds the LTC tables; null otherwise.
Vector3? ltc,
// The rectangle's corners relative to the shading point, for the clear
// coat's own integral — `g_rect_corners`; null for a punctual light.
List<Vector3>? corners,
});