Garry's Mod Wiki

MATERIAL_FOG

Description

Enumerations used by render.GetFogMode and render.FogMode. Clientside only.

Values

MATERIAL_FOG_NONE0No fog
MATERIAL_FOG_LINEAR1Linear fog
MATERIAL_FOG_LINEAR_BELOW_FOG_Z2For use in conjunction with render.SetFogZ. Does not work if start distance is bigger than end distance. Ignores density setting. Seems to be broken? Used for underwater fog by the engine.