fog | Fog tabel to be created |
f | Fog back boundary |
The following creates white fog from front -255/4000 to back -4000. NJS_FOG_TABLE fog; njSetFogColor(0xffffffff); njSetFogDensity(0xff07); njGenerateFogTable2(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. |