mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] egl: make it possible to configure HDR to SDR mapping
This commit is contained in:
@@ -21,6 +21,8 @@ uniform int scaleAlgo;
|
||||
uniform float nvGain;
|
||||
uniform int cbMode;
|
||||
uniform bool isHDR;
|
||||
uniform bool mapHDRtoSDR;
|
||||
uniform float mapHDRGain;
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -40,8 +42,8 @@ void main()
|
||||
}
|
||||
}
|
||||
|
||||
if (isHDR)
|
||||
color.rgb = mapToSDR(color.rgb);
|
||||
if (isHDR && mapHDRtoSDR)
|
||||
color.rgb = mapToSDR(color.rgb, mapHDRGain);
|
||||
|
||||
if (cbMode > 0)
|
||||
color = cbTransform(color, cbMode);
|
||||
|
Reference in New Issue
Block a user