API: assemblage
Function: litness()
lifecycle-kit
lifecycle-kit / assemblage / litness
Function: litness()
litness(
point,light):number
Defined in: assemblage/light.ts:70
How much light a point catches, 0..1.
The dot product of the point's offset against the light direction, which is the flat-shading approximation: a point on the side facing the light is brighter, and the falloff is smooth so nothing bands.
There are no surface normals here because there is no surface — these are
outlines in a plane. Position against the light is the honest amount of
information available, and it is enough to make a limb sit in front of a
body rather than on it. What it CANNOT do is know that one part covers
another; that is occlusion's job, and the two compose.
Parameters
point
light
Returns
number
