kwin/effects/icc/data/1.10/icc.frag

15 lines
218 B
GLSL

uniform sampler2D sampler;
varying vec2 texcoord0;
uniform sampler3D clut;
void main()
{
vec4 tex = texture2D(sampler, texcoord0);
tex.rgb = texture3D(clut, tex.rgb).rgb * tex.a;
gl_FragColor = tex;
}