next up previous contents index
Next: Flags Up: Fog Previous: Ether

Gaseous Objects

Objects have a gaseous pointer. This is set to the type of Gas you want. To see the gas the material of the object must be at least partially transparent. The clear material can be used which is completely transparent.

  the_object->material = clear;
  the_object->gaseous = new Fog(1.0, 1.0, 1.0, 0.95);

Figure 24: Fog in an Object

Sophie Day
Fri Feb 20 15:47:19 NZDT 1998