blob: 7db591c84e7b63d8c3a1c3a8cf706d96c25bd60f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Copyright (C) 2019 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#version 100
precision mediump float;
uniform sampler2D m_samp0;
varying vec4 m_cord0;
uniform float m_sdrPeak;
void main ()
{
vec3 rgb = texture2D(m_samp0, m_cord0.xy).rgb;
#if defined(KODI_LIMITED_RANGE)
rgb *= (235.0 - 16.0) / 255.0;
rgb += 16.0 / 255.0;
#endif
#if defined(KODI_TRANSFER_PQ)
rgb.rgb *= m_sdrPeak;
#endif
gl_FragColor = vec4(rgb, 1.0);
}
|