##### Ninja Library - Special Effects Function

# njGenerateFogTable3

Creates fog table and sets density

### FORMAT

`

  void njGenerateFogTable3( fog, n, f )
  NJS_FOG_TABLE fog
  Float n
  Float f

`

### PARAMETER

  `fog` | Fog table to be created
  `n` | Fog front boundary
  `f` | Fog back boundary

### RETURN

  None

### DESCRIPTION

  Creates fog from front n to back f.

### EXAMPLE

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

### NOTE

  The limit for the fog front boundary is 255/f. If a smaller value is specified, the boundary is set to 255/f. 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()
  njGenerateFogTable2()
  njSetFogTable()
  njFogEnable()
  njFogDisable()
  `

njGenerateFogTable3

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999