VRML_SPOTLIGHT Procedure
Creates a VRML spotlight.
Usage
VRML_SPOTLIGHT, position
Input Parameters
position—A 3-element array specifying the positioning of the spotlight.
Keywords
Angle—Specifies the angle of the light cone in degrees. (Default: 45)
Color—A 3-element array of RGB values, in the range of 0 to 255. (Default: [255, 255, 255], the color white)
Direction—The orientation of the light cone. (Default: [0, 0, –1])
Intensity—Number normalized from 0 to 1, where 1 is full intensity. (Default:1)
Rate—The exponential drop-off rate for light intensity from the axis of the light cone. (Default: 0)
Discussion
VRML_SPOTLIGHT implements one of the three types of lighting supported by VRML. (VRML_LIGHT is another.) A spotlight emanates light inside of a cone shape.
Example
VRML_OPEN, 'vrml_spotlight.wrl'
...
VRML_SPOTLIGHT, [-1, -1, 0], Color = [255, 0, 0]
VRML_CLOSE
See Also
VRML_CAMERA, VRML_LIGHT, VRML_OPEN
For a discussion of VRML lighting, see The VRML Sourcebook, by Andrea L. Ames, et al., John Wiley & Sons, Inc., 1996, Chapter 19.