Directional_light

Syntax:

	(directional_light
           (direction: coord)
           (color: 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.


Example:

(directional_light (color: (: 0 0 1) ))

This code creates a blue directional light facing along the negative z-axis.


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

LBW 12/05/96