##### Ninja Library - Special Effects Function

# njGenerateFogTable

Creates fog table

### FORMAT

`

  void njGenerateFogTable( fog )
  NJS_FOG_TABLE fog

`

### PARAMETER

  `fog` | Fog table to be created

### RETURN

  None

### DESCRIPTION

  Sets each value of the fog table from 0.f to 1.f in linear.

### EXAMPLE

      The following creates white fog from  front -1 to back -255.
      NJS_FOG_TABLE fog;
      njSetFogColor(0xffffffff);
      njSetFogDensity(0xff07);
      njGenerateFogTable(fog);
      njSetFogTable(fog);
      njFogEnable();
      /* Draw models etc. */
      njFogDisable();

### NOTE

  The fade function cannot be used for the same object.

  The example above only explains the flow of the fog feature, and therefore, it is not for actual use. |

### REFERENCE

  `njSetFogColor()
  njSetFogDensity()
  njGenerateFogTable2()
  njGenerateFogTable3()
  njSetFogTable()
  njFogEnable()
  njFogDisable()
  `

njGenerateFogTable

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999