SceneFog
Since 0.6
Fields
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
mode | FogMode | no | height, exponential, linear | height (default): exponential fog that thins with height (heightFalloff). exponential: the same with no falloff, 1 - e^(-density * d) past startDistanceM. linear: none at startDistanceM, full at endDistanceM. | |
color | string | no | #CCD9FF | Hex colour of a fully fogged surface as it shows on screen, the spelling skyColor uses: "#8FC0F0". Default "#CCD9FF", a light grey-blue. Match it to a color sky for a fogged horizon. | |
density | number | no | 0 | height and exponential: extinction per metre at the base height, 0..1. Default 0.02. | |
heightFalloff | number | no | 0 | height only: how fast density thins with height, per metre, 0.001..10. Default 0.2. | |
baseHeightM | number | no | 0 | height only: the height, in metres, where density is density. Default 0. | |
startDistanceM | number | no | 0 | Metres from the camera where fog begins, 0 or more. Default 0. | |
endDistanceM | number | no | 100 | linear only: metres where fog is total, more than startDistanceM. Default 100. | |
maxOpacity | number | no | 1 | Cap on the fog's cover, 0..1. Default 1. | |
hd | SceneFogHd | no | HD-only fog fields; the standard renderer ignores them. |