fog | Fog table to be created |
n | Fog front boundary |
f | Fog back boundary |
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();
The example above only explains the flow of the fog feature, and therefore, it is not for actual use. |