kwin/effects/data/cylinder.frag
Lucas Murray 912d458110 Fix cylinder and sphere fragment shader. Opacities are already pre-multiplied.
svn path=/trunk/KDE/kdebase/workspace/; revision=867666
2008-10-04 06:20:22 +00:00

14 lines
293 B
GLSL

uniform sampler2D winTexture;
uniform float windowWidth;
uniform float windowHeight;
uniform float opacity;
vec2 pix2tex(vec2 pix)
{
return vec2(pix.x / windowWidth, pix.y / windowHeight);
}
void main()
{
gl_FragColor.rgba = texture2D(winTexture, pix2tex(gl_TexCoord[0].xy)).rgba;
}