Private
Optional
#vismaskPrivate
Optional
#vismaskThe intensity of the light penetration in objects.
0.8
Intensity of the light.
100
Whether the light is hidden or not.
false
Protected
Optional
idPosition of the light object.
new Vec2()
The number of points which will be used for shadow projection. It defines the quality of the rendering.
1
Invoke a function for every sample generated by the light. Implement it by spreading samples and calling callback at each time.
Function to be called for every sample. The function will be passed a vector representing the position of the sample.
Protected
getProtected
getCreates a canvas context with the visible mask rendered onto it.
A canvas context with the visible mask rendered onto it.
Render a mask representing the visibility. (Used by DarkMask
)
The canvas context onto which the mask will be rendered.
A light object.