mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
'dynamic' namespace refactor + sensitivity is a NumberSetting now
This commit is contained in:
parent
398347bd81
commit
48982e3478
14 changed files with 168 additions and 140 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define SRC_SETTINGS_H_
|
||||
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "data/setting.h"
|
||||
#include "constants.h"
|
||||
|
|
@ -52,7 +53,7 @@ struct CameraSettings {
|
|||
/// @brief Camera field of view
|
||||
float fov = 90.0f;
|
||||
/// @brief Camera sensitivity
|
||||
float sensitivity = 2.0f;
|
||||
NumberSetting<float> sensitivity {2.0f, 0.1f, 10.0f};
|
||||
};
|
||||
|
||||
struct GraphicsSettings {
|
||||
|
|
@ -62,7 +63,7 @@ struct GraphicsSettings {
|
|||
float gamma = 1.0f;
|
||||
/// @brief Enable blocks backlight to prevent complete darkness
|
||||
bool backlight = true;
|
||||
/// @brief Enable chunks frustum culling */
|
||||
/// @brief Enable chunks frustum culling
|
||||
bool frustumCulling = true;
|
||||
int skyboxResolution = 64 + 32;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue