mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
add 'enable-fog' setting
This commit is contained in:
parent
f5de330f3f
commit
e467c85adc
4 changed files with 10 additions and 0 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue