next up previous contents index
Next: Directional Lighting Up: Lighting the Scene Previous: Lighting the Scene

Point Lights

   

Point lights radiate light from a point in all directions. They are created using the command

  object new_point_light(double red, double green, double blue);

This initialises the light at the origin. Lights must be placed in position and linked into the scene like any other object.

Example:

  the_light = new_point_light(0.6, 0.6, 0.5); 
  LINK(scene, PLUS, shift(3, 5, 6, the_light));



Sophie Day
Fri Feb 20 15:47:19 NZDT 1998