The Fog node can be used to add realism to your world. It provides atmosphere,
creating a mist or a heavy fog depending on the fields specified. This
node is a bindable node.
The fields for this node are:
Fog {
color 1 1 1 } |
The position of this node does not affect its scope, i.e. the fog affects
all shapes being drawn. The Fog node does not affect the Background,
i.e. regardeless of the Fog field values the Background
is always visible. To obtain a more realistic effect the Background
should be the same color as the Fog.
In the VRML example provided, the Spheres are placed ten meters apart in the Z axis and a white Background is used.