mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] egl: add support to map HDR to SDR
This commit is contained in:
@@ -9,6 +9,7 @@ precision highp float;
|
||||
#define EGL_SCALE_MAX 3
|
||||
|
||||
#include "color_blind.h"
|
||||
#include "hdr.h"
|
||||
|
||||
in vec2 uv;
|
||||
out vec4 color;
|
||||
@@ -19,6 +20,7 @@ uniform int scaleAlgo;
|
||||
|
||||
uniform float nvGain;
|
||||
uniform int cbMode;
|
||||
uniform bool isHDR;
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -38,6 +40,9 @@ void main()
|
||||
}
|
||||
}
|
||||
|
||||
if (isHDR)
|
||||
color.rgb = mapToSDR(color.rgb);
|
||||
|
||||
if (cbMode > 0)
|
||||
color = cbTransform(color, cbMode);
|
||||
|
||||
|
Reference in New Issue
Block a user