(chickadee graphics light) module provides a data type for
dynamic lights that can be used to light 3D objects (such as
Models or Meshes.)
There are 3 types of dynamic lights:
Return a new point light located at position that emits color light.
Return a new directional light that emits color light in direction.
Return a new spot light located at position that emits color light in direction in a cone that cuts off at cut-off radians.
#t if obj is a point light.
#t if obj is a directional light.
#t if obj is a spot light.
Return the type of light, one of:
Return the color of light.
Return the intensity of light.
Return the position of light. The value is irrelevant for directional lights.
Return the direction of light. The value is irrelevant for point lights.
Return the cosine of the cut off angle of light. The value is only relevant for spot lights.
Set the color of light to color.
Set the position of light to position.
Set the direction of light to direction.
Set the cut off angle of light to cut-off.