Convert shaders in dali-demo to use shader compilation tool
[platform/core/uifw/dali-demo.git] / examples / image-view-url / shaders / image-view-url.frag
1 precision highp float;
2 varying mediump vec2 vTexCoord;
3 uniform sampler2D sTexture;
4 uniform mediump float uDelta;
5
6 void main()
7 {
8   vec4 color = vec4(0.0);
9   vec2 texCoord = vTexCoord * 2. - 1.;
10   mat2 rotation = mat2(cos(uDelta), -sin(uDelta), sin(uDelta), cos(uDelta));
11   texCoord = (rotation * texCoord) * .5 + .5;
12   color += texture2D( sTexture, texCoord );
13   gl_FragColor = color;
14 }