fix particle brightness distribution with new gamma correction (#4710)

Particle System depends on linear brightness distribution, gamma corrected values are non-linear.
- added invers gamma table
- reversing gamma after brightness distribution makes it linear once again
This commit is contained in:
Damian Schneider
2025-06-07 13:15:45 +02:00
committed by GitHub
parent a87b562bc2
commit 8b65d873b3
5 changed files with 28 additions and 6 deletions

View File

@@ -341,7 +341,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
gammaCorrectBri = false;
gammaCorrectCol = false;
}
NeoGammaWLEDMethod::calcGammaTable(gammaCorrectVal); // fill look-up table
NeoGammaWLEDMethod::calcGammaTable(gammaCorrectVal); // fill look-up tables
t = request->arg(F("TD")).toInt();
if (t >= 0) transitionDelayDefault = t;