setFogMode

HC Graphics Fog setFogMode
setFogColor Pictures

setFogMode mode


command to set the fog mode. It is recommended to read on the OpenGL docs about the fog equations.

The following constants can be used as mode:

GL_LINEAR
GL_EXP
GL_EXP2

Linear fog is currently selected on every call to perspective.

Example:

cs perspective
setFogDensity 0.001
setFogColor "white
setFogMode GL_EXP
enableFog
x=FloatArray random IntArray rSeqFA 800 800 1000000
y=FloatArray random IntArray rSeqFA 400 400 1000000
z=FloatArray random IntArray rSeqFA 800 800 1000000
setPixelXYZ x-400 y-400 z-400 0

Reference:

setFogColor Pictures