repo.or.cz
/
personal-kdebase.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add more spacing
[personal-kdebase.git]
/
workspace
/
kwin
/
effects
/
data
/
cylinder.frag
blob
efe47f9b1cc7f279661fc27920f04f0dc934b8d1
1
uniform sampler2D winTexture;
2
uniform float windowWidth;
3
uniform float windowHeight;
4
uniform float opacity;
5
6
vec2 pix2tex(vec2 pix)
7
{
8
return vec2(pix.x / windowWidth, pix.y / windowHeight);
9
}
10
11
void main()
12
{
13
gl_FragColor.rgba = texture2D(winTexture, pix2tex(gl_TexCoord[0].xy)).rgba;
14
}