# fog-value-range

> Talos 0.7 · Since 0.6; changed in 0.7

A `meta.environment.fog` value is outside its range (density 0..1, heightFalloff 0.001..10, start 0 or more, end past start, maxOpacity 0..1, hd.sunAnisotropy 0..0.95, hd.skyDistanceM 1..1000000) or not finite, or a colour is not `#RGB`/`#RRGGBB`.

| | |
|---|---|
| Severity | `error` |
| Source | `contract` |
| Offers a fix patch | no |

## Messages

The message opens with the code; `<…>` stands for a value.

- `fog.baseHeightM is <…>; it must be a finite number of metres`
- `fog.color "<…>" is not a hex colour; write "#RGB" or "#RRGGBB"`
- `fog.density is <…>; it must be within 0..1 (extinction per metre)`
- `fog.endDistanceM is <…>; it must be a finite number of metres more than fog.startDistanceM (<…>)`
- `fog.hd.skyDistanceM is <…>; it must be within <…>..<…> metres`
- `fog.hd.sunAnisotropy is <…>; it must be within 0..<…>`
- `fog.hd.sunColor "<…>" is not a hex colour; write "#RGB" or "#RRGGBB"`
- `fog.heightFalloff is <…>; it must be within <…>..<…> per metre`
- `fog.maxOpacity is <…>; it must be within 0..1`
- `fog.startDistanceM is <…>; it must be a finite number of metres, 0 or more`
- `fog.visibilityM is <…>; it must be within <…>..<…> metres`

## Where it points

- `/meta/environment/fog/baseHeightM`
- `/meta/environment/fog/color`
- `/meta/environment/fog/density`
- `/meta/environment/fog/endDistanceM`
- `/meta/environment/fog/hd/skyDistanceM`
- `/meta/environment/fog/hd/sunAnisotropy`
- `/meta/environment/fog/hd/sunColor`
- `/meta/environment/fog/heightFalloff`
- `/meta/environment/fog/maxOpacity`
- `/meta/environment/fog/startDistanceM`
- `/meta/environment/fog/visibilityM`

## Since / changed

See the version chips above and what changed.
