draw Shadow
Draw an offset spot shadow and outlining ambient shadow for the given path using a disc light. The shadow may be cached, depending on the path type and canvas matrix. If the matrix is perspective or the path is volatile, it will not be cached.
Parameters
The canvas on which to draw the shadows.
The occluder used to generate the shadows.
Values for the plane function which returns the Z offset of the occluder from the canvas based on local x and y values (the current matrix is not applied).
The 3D position of the light relative to the canvas plane. This is independent of the canvas's current matrix.
The radius of the disc light.
The color of the ambient shadow.
The color of the spot shadow.
The occluding object is not opaque. Knowing that the occluder is opaque allows us to cull shadow geometry behind it and improve performance.
Don't try to use analytic shadows.