add 'enable-fog' setting

This commit is contained in:
MihailRis 2026-09-26 19:13:08 +03:00
parent f5de330f3f
commit e467c85adc
4 changed files with 10 additions and 0 deletions

View file

@ -63,6 +63,8 @@ struct CameraSettings {
};
struct GraphicsSettings {
/// @brief Enable fog
FlagSetting enableFog {true};
/// @brief Fog opacity is calculated as `pow(depth*k, fogCurve)` where k depends on chunksLoadDistance.
/// 1.0 is linear, 2.0 is quadratic
NumberSetting fogCurve {1.0f, 1.0f, 6.0f};