Old Content This page is now considerably out-of-date.
IntroductionObviously you need lights in a world to see anything. Typically, the browser will provide the viewer with some kind of headlight, so they can see what they're looking at. In addition, you will often want to deliberately put lights at specific points in the world. VRML provides three types of light sources for this: Light sources only affect subsequent objects in the same separator. If you want to apply a transformation to a light source, but still want it to affect later objects, use Each type of light has these properties:
Each type of light source also has it's own additional properties. PointLightThis kind of light source shines uniformly in all directions, like an unshaded light bulb. It has this property:
Directional LightA direction light source emits parallel rays which do not diverge or become dimmer with distance, like a laser with an infinitely wide and infinitely thick beam. Typically the headlight is a directional light. It has this property:
SpotLightThis is a directional light source, where rays originate from a single point. They diverge outward in the shape of a cone, and so become dimmer with distance. These properties are available:
© 1998 - 2012
Paul Johnston, distributed under the BSD License Updated:13 Jul 2009 |