fog | fog table |
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();
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. |