diff options
| author | hachem <im@hachem.wtf> | 2026-08-24 17:07:54 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-24 17:07:54 +0200 |
| commit | 06398a7a176e123506de6e8851866a8bec0b3427 (patch) | |
| tree | 7167ef4818f2c224840122961882efb5ec26c80b /src/core | |
| parent | 1c85c2ecaa826afd8bf80f93741cf1b2deba5798 (diff) | |
[chore]: cleanup shaders
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/settings_manager.cpp | 10 | ||||
| -rw-r--r-- | src/core/settings_manager.h | 4 |
2 files changed, 1 insertions, 13 deletions
diff --git a/src/core/settings_manager.cpp b/src/core/settings_manager.cpp index 6909c60..eb7f800 100644 --- a/src/core/settings_manager.cpp +++ b/src/core/settings_manager.cpp @@ -53,8 +53,6 @@ namespace Donut s_settings.simulation.disk_thickness = toml::find_or(sim, "disk_thickness", 0.1f); s_settings.simulation.disk_density = toml::find_or(sim, "disk_density", 0.1f); s_settings.simulation.rotation_speed = toml::find_or(sim, "rotation_speed", 1.0f); - s_settings.simulation.blur_strength = toml::find_or(sim, "blur_strength", 2.0f); - s_settings.simulation.glow_intensity = toml::find_or(sim, "glow_intensity", 0.1f); s_settings.simulation.target_fps = std::max(30, std::min(120, s_settings.simulation.target_fps)); s_settings.simulation.compute_height = std::max(64, std::min(2048, s_settings.simulation.compute_height)); @@ -64,8 +62,6 @@ namespace Donut s_settings.simulation.disk_thickness = std::max(0.01f, std::min(5.0f, s_settings.simulation.disk_thickness)); s_settings.simulation.disk_density = std::max(0.01f, std::min(5.0f, s_settings.simulation.disk_density)); s_settings.simulation.rotation_speed = std::max(0.0f, std::min(5.0f, s_settings.simulation.rotation_speed)); - s_settings.simulation.blur_strength = std::max(0.1f, std::min(10.0f, s_settings.simulation.blur_strength)); - s_settings.simulation.glow_intensity = std::max(0.01f, std::min(5.0f, s_settings.simulation.glow_intensity)); } if (config.contains("graphics")) @@ -123,9 +119,7 @@ namespace Donut {"gravity_enabled", s_settings.simulation.gravity_enabled }, {"disk_thickness", s_settings.simulation.disk_thickness }, {"disk_density", s_settings.simulation.disk_density }, - {"rotation_speed", s_settings.simulation.rotation_speed }, - {"blur_strength", s_settings.simulation.blur_strength }, - {"glow_intensity", s_settings.simulation.glow_intensity } + {"rotation_speed", s_settings.simulation.rotation_speed } }; toml::value graphics = toml::table @@ -185,8 +179,6 @@ namespace Donut s_settings.simulation.disk_thickness = 0.1f; s_settings.simulation.disk_density = 0.1f; s_settings.simulation.rotation_speed = 1.0f; - s_settings.simulation.blur_strength = 2.0f; - s_settings.simulation.glow_intensity = 0.1f; s_settings.graphics.render_api = "OpenGL"; s_settings.graphics.v_sync_enabled = true; diff --git a/src/core/settings_manager.h b/src/core/settings_manager.h index 95826c7..e28e0e1 100644 --- a/src/core/settings_manager.h +++ b/src/core/settings_manager.h @@ -16,8 +16,6 @@ namespace Donut float disk_thickness = 0.1f; float disk_density = 0.1f; float rotation_speed = 1.0f; - float blur_strength = 2.0f; - float glow_intensity = 0.1f; }; struct GraphicsSettings @@ -61,8 +59,6 @@ namespace Donut static auto get_disk_thickness() -> float { return s_settings.simulation.disk_thickness; } static auto get_disk_density() -> float { return s_settings.simulation.disk_density; } static auto get_rotation_speed() -> float { return s_settings.simulation.rotation_speed; } - static auto get_blur_strength() -> float { return s_settings.simulation.blur_strength; } - static auto get_glow_intensity() -> float { return s_settings.simulation.glow_intensity; } static auto get_render_api() -> std::string { return s_settings.graphics.render_api; } static auto get_v_sync_enabled() -> bool { return s_settings.graphics.v_sync_enabled; } static auto get_show_fps() -> bool { return s_settings.graphics.show_fps; } |
