Add "Bloom Mode" config option (Off, Classic, Dusk)

This commit is contained in:
Luke Street
2026-04-13 13:06:14 -06:00
parent a3a36508d6
commit b3cc9ba02e
7 changed files with 89 additions and 10 deletions
+15 -1
View File
@@ -62,7 +62,21 @@ namespace dusk {
config::Save();
}
config::ImGuiCheckbox("Native Bloom", getSettings().game.enableBloom);
constexpr const char* bloomModeNames[] = {"Off", "Classic", "Dusk"};
int bloomMode = static_cast<int>(getSettings().game.bloomMode.getValue());
if (ImGui::BeginCombo("Bloom", bloomModeNames[bloomMode])) {
for (int i = 0; i < IM_ARRAYSIZE(bloomModeNames); i++) {
const bool selected = bloomMode == i;
if (ImGui::Selectable(bloomModeNames[i], selected)) {
getSettings().game.bloomMode.setValue(static_cast<BloomMode>(i));
config::Save();
}
if (selected) {
ImGui::SetItemDefaultFocus();
}
}
ImGui::EndCombo();
}
config::ImGuiCheckbox("Enable Water Refraction", getSettings().game.enableWaterRefraction);