summaryrefslogtreecommitdiffstats
path: root/system/shaders/GL/1.5/gl_shader_frag_multi.glsl
blob: 3e6412b00e139b5057da0eeac5eac436f4c67707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 150

uniform sampler2D m_samp0;
uniform sampler2D m_samp1;
in vec4 m_cord0;
in vec4 m_cord1;
out vec4 fragColor;

// SM_MULTI shader
void main ()
{
  fragColor.rgba = (texture(m_samp0, m_cord0.xy) * texture(m_samp1, m_cord1.xy)).rgba;
#if defined(KODI_LIMITED_RANGE)
  fragColor.rgb *= (235.0-16.0) / 255.0;
  fragColor.rgb += 16.0 / 255.0;
#endif
}