LightSample class final
What SampleLight produces: one light as a point being shaded sees it.
Breaking in 1.0.0-rc.1: a class with the same fields, where it was a record; a field read is unchanged, a record literal is this constructor.
Constructors
-
LightSample({required Vector3 direction, required Vector3 radiance, required double nDotL, required double nDotH, required double vDotH, Vector3? ltc, List<
Vector3> ? corners}) -
One light's terms at a point.
const
Properties
-
corners
→ List<
Vector3> ? -
The rectangle's corners relative to the shading point, for the clear
coat's own integral —
g_rect_corners; null for a punctual light.final - direction → Vector3
-
The unit direction from the point towards the light.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- ltc → Vector3?
-
L7: the GGX lobe integrated over a rectangle, its norm and Fresnel term, when the model binds the LTC tables; null otherwise.final - nDotH → double
-
The cosine between the normal and the half vector, nought to one.
final
- nDotL → double
-
The cosine between the normal and direction, or a rectangle's form
factor.
final
- radiance → Vector3
-
What reaches the point, linear, before n·l.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vDotH → double
-
The cosine between the view and the half vector, nought to one.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override