(spot_light
(direction: coord)
(color: coord)
(center: coord))
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.
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.
A set of coordinates specifying the position of the center of the light in meters. The default position is (: 0 0 0), the origin.
(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.
LBW 12/05/96