Add ability to set param of stretch

This commit is contained in:
2020-05-16 22:38:38 +02:00
parent ab2a7c9f1a
commit 3fb3b2a760
6 changed files with 50 additions and 7 deletions
+4 -1
View File
@@ -24,7 +24,10 @@ void main(void)
color = log(a*color + 1.0) / log(vec4(a+1));
break;
case 4:
color = asinh(color / a) / asinh(1 / a);
{
float l = color.r*0.2126f + color.g*0.7152f + color.b*0.7152f;
color *= asinh(l / a) / asinh(1 / a);
}
break;
}