The Light object is used to define the properties of the light: type, space, position, and color.
All lights in communicator currently have a directional light type. Directional lights approximate a distant light source like the sun. The light's position is interpreted as a vector pointing toward the light rather than a point inside the scene. Light will hit every point in the scene from that direction.
Lights can either be placed in world space or camera space. Specifying a light position in camera space will cause it to follow the camera.
The position of the light in the scene. Note: for directional lights, the position defines the light direction and is not interpreted as a point in the scene.
The light's color.
The following code adds a red world space light to the scene.
The following code adds a green camera space light to the scene.