Skip to content

Commit

Permalink
Adjust intensity
Browse files Browse the repository at this point in the history
Max brightness to max intensity amount as Gamma at 100%
  • Loading branch information
kphoenix137 committed Feb 3, 2025
1 parent 09494fb commit 411e53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/engine/palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void ApplyToneMapping(std::array<SDL_Color, 256> &dst,
int brightnessSlider = *GetOptions().Graphics.brightness; // New brightness setting.

// Maximum adjustment factor (tweak this constant to change the effect strength)
const float maxAdjustment = 1.0f;
const float maxAdjustment = 2.0f;
// Compute the quadratic parameter:
// When brightnessSlider==0, then a==0 (identity mapping)
// When brightnessSlider==100, then a== -maxAdjustment (maximum brightening)
Expand Down

0 comments on commit 411e53b

Please sign in to comment.