<<VRML 2.0 - An Introductory view by examples

DirectionalLight

[example]                                                    [run]

It defines a light node that illuminates along rays parallel to "direction".

{
exposedField SFFloat ambientIntensity 0
exposedField SFColor color 1 1 1
exposedField SFVec3f direction 0 0 -1
exposedField SFFloat intensity 1
exposedField SFBool on TRUE
}