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