X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fimage-view-url%2Fshaders%2Fimage-view-url.frag;h=27bbc1891fedfdbbde435c4c638d49df4efe43e5;hb=e2b3f0cd8c98aebdbb4b5b324b52860607588591;hp=4b07ce46ccb989e744eceb59ad5ac066abd17efe;hpb=475bdc598c4e6babadb5283e14daafbb57792828;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/image-view-url/shaders/image-view-url.frag b/examples/image-view-url/shaders/image-view-url.frag index 4b07ce4..27bbc18 100644 --- a/examples/image-view-url/shaders/image-view-url.frag +++ b/examples/image-view-url/shaders/image-view-url.frag @@ -1,5 +1,5 @@ precision highp float; -varying mediump vec2 vTexCoord; +INPUT mediump vec2 vTexCoord; uniform sampler2D sTexture; uniform mediump float uDelta; @@ -9,6 +9,6 @@ void main() vec2 texCoord = vTexCoord * 2. - 1.; mat2 rotation = mat2(cos(uDelta), -sin(uDelta), sin(uDelta), cos(uDelta)); texCoord = (rotation * texCoord) * .5 + .5; - color += texture2D( sTexture, texCoord ); - gl_FragColor = color; -} \ No newline at end of file + color += TEXTURE( sTexture, texCoord ); + OUT_COLOR = color; +}