##### Ninja Library - Special Effects Function

# njGenerateFogTable2

Creates fog table and sets density.

### FORMAT

`

  void njGenerateFogTable2(fog, f)
  NJS_FOG_TABLE fog
  Float f

`

### PARAMETER

  `fog` | Fog tabel to be created
  `f` | Fog back boundary

### RETURN

  None

### DESCRIPTION

  Makes fog occur from front 255/f to back f.

### EXAMPLE

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

### NOTE

  Fog density is set automatically. 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()
  njGenerateFogTable()
  njGenerateFogTable3()
  njSetFogTable()
  njFogEnable()
  njFogDisable()
  `

njGenerateFogTable2

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999