Skip to content

CameraFogColor

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions
Blitz3D

CameraFogColor

CameraFogColor:Void camera:Int32, red:Float32, green:Float32, blue:Float32
Parameter Mode Type Default Description
camera In Int32 required Camera handle.
red In Float32 required Red part, 0 to 255.
green In Float32 required Green part, 0 to 255.
blue In Float32 required Blue part, 0 to 255.

Description

Sets the color the fog fades to. Match it to the clear color of the camera, set with CameraClsColor, so distant things melt into the background instead of ending at a visible edge. The default is black. Each part is clamped to 0 through 255.

Related Commands

CameraClsColor, CameraClsMode, CameraCulling, CameraCullingSource, CameraFogMode, CameraFogRange, CameraProject, CameraProjMode

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally