diff options
Diffstat (limited to 'system/shaders/GL/1.5/gl_shader_frag_multi_blendcolor.glsl')
-rw-r--r-- | system/shaders/GL/1.5/gl_shader_frag_multi_blendcolor.glsl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/system/shaders/GL/1.5/gl_shader_frag_multi_blendcolor.glsl b/system/shaders/GL/1.5/gl_shader_frag_multi_blendcolor.glsl new file mode 100644 index 0000000..96310ce --- /dev/null +++ b/system/shaders/GL/1.5/gl_shader_frag_multi_blendcolor.glsl @@ -0,0 +1,18 @@ +#version 150 + +uniform sampler2D m_samp0; +uniform sampler2D m_samp1; +uniform vec4 m_unicol; +in vec4 m_cord0; +in vec4 m_cord1; +out vec4 fragColor; + +// SM_MULTI shader +void main () +{ + fragColor.rgba = m_unicol * texture(m_samp0, m_cord0.xy) * texture(m_samp1, m_cord1.xy); +#if defined(KODI_LIMITED_RANGE) + fragColor.rgb *= (235.0-16.0) / 255.0; + fragColor.rgb += 16.0 / 255.0; +#endif +} |