Help Contents / Graphics / Fog / setFogDensity

setFogDensity density

command to set the density parameter of the OpenGL fog. It does not enableFog, you must call that explicitly. Typical values for density are 0.001...0.5. 

Example: 

	cs perspective 
	setFogDensity 0.3 
	setFogColor "white 
	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 
	rotatescene 


next: setFogRange
