mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[client] egl: use a sigmoid curve for nv
This commit is contained in:
parent
3c9b9e6370
commit
b0568ca404
@ -37,8 +37,9 @@ void main()
|
|||||||
|
|
||||||
if (nvGain > 0.0)
|
if (nvGain > 0.0)
|
||||||
{
|
{
|
||||||
highp float lumi = 1.0 - (0.2126 * color.r + 0.7152 * color.g + 0.0722 * color.b);
|
highp float lumi = (0.2126 * color.r + 0.7152 * color.g + 0.0722 * color.b);
|
||||||
color *= 1.0 + lumi;
|
if (lumi < 0.5)
|
||||||
|
color *= atanh((1.0 - lumi) * 2.0 - 1.0) + 1.0;
|
||||||
color *= nvGain;
|
color *= nvGain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user