mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-02 15:53:51 +00:00
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:
parent
cf3fe70f1f
commit
192c6175b8
4 changed files with 40 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue