Menu

CameraFogRange

UltraBas

CameraFogRange camera, near!, far!

Set the fog range of the camera; since the range of the camera is not infinite, object that are outside of the range will disappear (otherwise, the system will have too many polygons to render); the fog allows to slowly fade an object away, giving it the same color of the background, to avoid a sudden disappearing.

The near! parameter is a floating point variable that specify the minimum range of the fog effect; any object closer to the camera won't be affected by fog.

The far! parameter is a floating point variable that specify the maximum range of the fog; any object that is outside this range will have the maximum fog effect, and will have the same color of the background (thus being invisible).

See also [CameraFogColor], [CameraRange].


Related

Wiki: Alphabetical-commands
Wiki: CameraFogColor
Wiki: CameraRange
Wiki: Category-commands

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.