Fog tags describe the colour and density properties of fog which can be applied to BSP fog planes using Sapien.
Non-planar atmospheric fog does not use a fog tag, and is instead controlled by the sky tag.
Known issues
Due to a renderer regression, the screen layers effect of these tags does not render on H1CE or H1PC, nor does it draw over the skybox unless atmosphere dominant is set. This tag renders correctly in H1X and H1A.
As of MCC season 7, there is a new issue where fog does not render at the right density over models and causes them to stand out especially in areas of high fog density.
Related HaloScript
Function/global | Type | |
---|---|---|
Toggles both environmental sky fog and fog plane colors. Does not affect fog screen. Use | Global | |
Toggles the rendering of fog planes. | Global |
Structure and fields
Field | Type | Comments | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
flags | bitfield | ||||||||||||||||
| |||||||||||||||||
maximum density | float | Scales how dense the fog is at its opaque distance and depth, where | |||||||||||||||
opaque distance | float | The distance from the player where the fog reaches its maximum density. This value must not be negative or zero (causes a crash in pre-H1A versions). | |||||||||||||||
opaque depth | float | The distance from the fog plane where the fog reaches its maximum density. This value must not be negative or zero (causes a crash in pre-H1A versions). | |||||||||||||||
distance to water plane | float | ||||||||||||||||
color | ColorRGB | ||||||||||||||||
flags 1 | bitfield | ||||||||||||||||
| |||||||||||||||||
layer count | uint16 | ||||||||||||||||
distance gradient | Bounds | ||||||||||||||||
| |||||||||||||||||
density gradient | Bounds | ||||||||||||||||
| |||||||||||||||||
start distance from fog plane | float | ||||||||||||||||
screen layers color | ColorARGBInt | Sets the colour of the screen layer volumetrics particles. Note that this effect only works in H1X and H1A. | |||||||||||||||
RGB Color with alpha, with 8-bit color depth per channel (0-255)
| |||||||||||||||||
rotation multiplier | float | ||||||||||||||||
strafing multiplier | float | Scales the parallax movement of the fog screen layer during strafing. | |||||||||||||||
zoom multiplier | float | ||||||||||||||||
map scale | float | ||||||||||||||||
map | TagDependency : bitmap | ||||||||||||||||
animation period | float | ||||||||||||||||
wind velocity | Bounds ? | ||||||||||||||||
wind period | Bounds ? | ||||||||||||||||
wind acceleration weight | float | ||||||||||||||||
wind perpendicular weight | float | ||||||||||||||||
background sound | TagDependency : sound_looping | Overrides the background sound of the cluster while under the fog plane. This is used for underwater areas. | |||||||||||||||
sound environment | TagDependency : sound_environment | Overrides the sound environment of the cluster while under the fog plane. This is used for underwater areas. |
Acknowledgements
Thanks to the following individuals for their research or contributions to this topic:
- Jakey (Known fog issues in S7 MCC)
- Kavawuvi (Invader tag definitions)
- MosesOfEgypt (Tag structure research)