njGenerateFogTable3 Japanese
<-|INDEX|->
Creates Fog Table and Sets Density.

FORMAT

#include <Ninja.h>

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

PARAMETERS

NJS_FOG_TABLE fog
Fog table to be created
Float n
Fog front boundary
Float f
Fog back boundary

RETURN VALUE

None

FUNCTION


EXAMPLE

Creates white fog from front -1000 to back -4000.
NJS_FOG_TABLE fog;

njSetFogColor(0xffffffff);
njGenerateFogTable3(fog, -1000.f, -4000,f);
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


RELATED TOPICS

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

njGenerateFogTable3
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997