njSetFogDensity | Japanese
    <-|INDEX|->
Specifies the fog density.

### FORMAT

      #include <Ninja.h>

      void njSetFogDensity(density)
      Uint32 density

### PARAMETERS

Uint32 density
  value of sinedensity

### RETURN VALUE

  None

### FUNCTION

- Specifies the fog density.

### EXAMPLE

  Creates white fog from w = -1.f to -255.f.

      NJS_FOG_TABLE fog;

      njSetFogColor(0xffffffff);
      njFogDensity(0xff07);
      njGenerateFogTable(fog);
      njSetFogTable(fog);
      njFogEnable();

              :
      Drawing models etc.
              :

      njFogDisable();

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

### NOTES

- It cannot be used with the fade feature against the same object.
- The example above explains only the flow of the fog feature.
  It cannot be executed as is.

- The fog density value is spedified as 16 bit: upper 8bit = mantissa; lower 8bit= exponent.
- Range for the fog is 1/w = 1/density...256/density.
  For example, when the fog reaches the value of w, 65536:
  density = 65536 = 0x8010, and the range for the fog is w=65536 to w=256.
- Fog color that is out of range is clumped .

### RELATED TOPICS

  njSetFogColor()
  njFogDensity()
  njSetFogTable()
  njFogEnable()
  njFogDisable()
  njGenerateFogTable()
  njGenerateFogTable2()
  njGenerateFogTable3()

njSetFogDensity |
    <-|INDEX|->