feat: add brightness slider to Video settings

Black overlay dims below 50%, white overlay brightens above 50%.
Persisted in settings.cfg, with restore-defaults support.
This commit is contained in:
Kelsi 2026-03-17 09:04:53 -07:00
parent cf3fe70f1f
commit 192c6175b8
4 changed files with 40 additions and 0 deletions

View file

@ -381,6 +381,13 @@ private:
void initOverlayPipeline();
void renderOverlay(const glm::vec4& color, VkCommandBuffer overrideCmd = VK_NULL_HANDLE);
// Brightness (1.0 = default, <1 darkens, >1 brightens)
float brightness_ = 1.0f;
public:
void setBrightness(float b) { brightness_ = b; }
float getBrightness() const { return brightness_; }
private:
// FSR 1.0 upscaling state
struct FSRState {
bool enabled = false;

View file

@ -171,6 +171,7 @@ private:
bool pendingShadows = true;
float pendingShadowDistance = 300.0f;
bool pendingWaterRefraction = false;
int pendingBrightness = 50; // 0-100, maps to 0.0-2.0 (50 = 1.0 default)
int pendingMasterVolume = 100;
int pendingMusicVolume = 30;
int pendingAmbientVolume = 100;