zscript-doc/api/level/FColorMap.md

33 lines
574 B
Markdown
Raw Permalink Normal View History

2018-12-29 16:05:19 -08:00
# FColorMap
Describes the coloring of a sector.
```
struct FColorMap
{
2019-08-14 03:32:51 -07:00
uint8 BlendFactor;
uint8 Desaturation;
color FadeColor;
color LightColor;
2018-12-29 16:05:19 -08:00
}
```
2019-08-14 03:31:41 -07:00
### `BlendFactor`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
TODO: "This is for handling Legacy-style color maps which use a different
formula to calculate how the color affects lighting."
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
### `Desaturation`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
How much to desaturate colors in this sector. Range is 0 to 255, inclusive.
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
### `FadeColor`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
The color of fog in this sector. None if all components are 0.
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
### `LightColor`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
The color of the sector. Default if all components are 0.
2018-12-29 16:05:19 -08:00
<!-- EOF -->