Fix visual defect during text scroll
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / graphics / shaders / primitive-visual-shader.frag
1 //Very simple fragment shader that merely applies the vertex shading to the color at each fragment.
2
3 precision mediump float;
4 varying mediump vec3 vIllumination;
5 uniform lowp vec4 uColor;
6 uniform lowp vec3 mixColor;
7
8 void main()
9 {
10   vec4 baseColor = vec4(mixColor, 1.0) * uColor;
11   gl_FragColor = vec4( vIllumination.rgb * baseColor.rgb, baseColor.a );
12 }