mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:24:07 +02:00
Merge pull request #12965 from NissimHadar/bug12979
Fix for bug #12979: Setting colors [0, 0, 254] from js api ends up as black color
This commit is contained in:
commit
5a3f44fa15
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ inline float ColorUtils::tosRGBFloat(const float &linear) {
|
|||
} else if (0 < linear && linear < SRGB_ELBOW_INV) {
|
||||
sRGBValue = 12.92f * linear;
|
||||
} else if (SRGB_ELBOW_INV <= linear && linear < 1) {
|
||||
sRGBValue = 1.055f * powf(linear, 0.41666f - 0.055f);
|
||||
sRGBValue = 1.055f * powf(linear, 0.41666f) - 0.055f;
|
||||
} else {
|
||||
sRGBValue = 1.0f;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue