aboutsummaryrefslogtreecommitdiff
path: root/Gem/examples/10.glsl/P_distord.frag
blob: 5460d6ce4e0b6f76aab6a637121af11d74bf8f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Cyrille Henry 2007

uniform sampler2D tex0;

void main()
{
    vec2 C =  (gl_TextureMatrix[0] * gl_TexCoord[0]).st;
    gl_FragColor = texture2D(tex0, C ) ;
}