fog | Fog table to be created |
The following creates white fog from front -1 to back -255. NJS_FOG_TABLE fog; njSetFogColor(0xffffffff); njSetFogDensity(0xff07); njGenerateFogTable(fog); njSetFogTable(fog); njFogEnable(); /* Draw models etc. */ njFogDisable();
The example above only explains the flow of the fog feature, and therefore, it is not for actual use. |