<<VRML 2.0 - An Introductory view by examples

Fog

[fog example]                               [run-example]


It is a bindable node that provides the simulation of atmospheric effects by:

{
eventIn SFBool set_bind # when received a TRUE event, push node on the top of the fog stack
exposedField SFColor color 1 1 1 # blending color
exposedField SFString fogType "LINEAR" # blending viewer distance function
exposedField SFFloat visibilityRange 0 # total blending distance
eventOut SFBool isBound # sent when node moved/removed to/from top
}

Usage :

 Fog { 
       color 0 1 0
       fogType "LINEAR"
       visibilityRange 10
           }