Black Ops III

SetVolFog

Creates an exponential fog.

Example:

SetVolFog(0.0001144, 0.01, 131/255, 116/255, 71/255, 0)

Parameters

ParameterSummary
*startDistThe distance, in world units, at which the fog begins.
*halfwayDistThe distance at which the scene will be 50% fogged.
*halfwayHeightThe height at which the scene will be 50% fogged.
*baseHeightThe ground-level Z position at which the fog will start from.
*redThe red component of the fog as a value between 0.0 and 1.0
*greenThe green component of the fog as a value between 0.0 and 1.0
*blueThe blue component of the fog as a value between 0.0 and 1.0
*transition timetransition time in seconds
*startDistThe distance, in world units, at which the fog begins.
*halfwayDistThe distance at which the scene will be 50% fogged.
*halfwayHeightThe height at which the scene will be 50% fogged.
*baseHeightThe ground-level Z position at which the fog will start from.
*redThe red component of the fog as a value between 0.0 and 1.0
*greenThe green component of the fog as a value between 0.0 and 1.0
*blueThe blue component of the fog as a value between 0.0 and 1.0
*fogColorScaleThe scaler for the colors as a value between 1 and 10000.0
*sunFogRedThe red component of the fog as a value between 0.0 and 1.0
*sunFogGreenThe green component of the fog as a value between 0.0 and 1.0
*sunFogBlueThe blue component of the fog as a value between 0.0 and 1.0
*sunFogDirXThe X component of the fog direction as a value between -1.0 and 1.0
*sunFogDirYThe Y component of the fog direction as a value between -1.0 and 1.0
*sunFogDirZThe Z component of the fog direction as a value between -1.0 and 1.0
*sunFogStartAngThe starting angle of the sun fog as a value between 0 and 180
*sunFogEndAngThe ending angle of the sun fog as a value between 0 and 180
*fog max opacityThe maximum opacity of the fog as a value between 0 and 1
*transition timetransition time in seconds

* = mandatory