Spot_light

Syntax:

	(spot_light
           (direction: coord)
           (color: coord)
           (center: coord))

direction:

A set of coordinates (x, y, z) specifying the normalized direction of the light. The default direction is (: 0 0 -1), the negative z-axis.

color:

A set of coordinates specifying the (r, g, b) values of the color of the light. Each element is on the range {0, 1}. The default color is (: 1 1 1), white.

center:

A set of coordinates specifying the position of the center of the light in meters. The default position is (: 0 0 0), the origin.


Example:

(spot_light (color: (: 1 0 1) (angle: 30))

This code creates a purple spot light with a cutoff angle of 30 degrees light facing along the negative z-axis.


© 1996, Morgan McGuire ([email protected]) and Laura Wollstadt ([email protected]).
All rights reserved

LBW 12/05/96