##### Ninja Library - Special Effects Function

# njSetFogTable

Sets a user-defined fog table

### FORMAT

`

  void njSetFogTable( fog )
  NJS_FOG_TABLE fog

`

### PARAMETER

  `fog` | fog table

### RETURN

  None

### DESCRIPTION

  Sets a user-defined fog table.

### EXAMPLE

      The following makes green fog from front -10000 to back -40000 in linear.
      NJS_FOG_TABLE fog;
      njSetFogColor(0xffffffff);
      njSetFogDensity(0xff07);
      njGenerateFogTable(fog);
      njSetFogTable(fog);
      njFogEnable();
      /* Drawing models etc. */
      njFogDisable();

### NOTE

  It can't be used with fade feature against the same object.

  Rewrite of the fog table needs to be done during V blank. Please register task in `njSetEORFunction()` function.

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

### REFERENCE

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

njSetFogTable

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999