Merge "fix ellipsis not working issue when the given width is too narrow" into devel...
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / graphics / shaders / text-visual-single-color-text-shader.frag
1 varying mediump vec2 vTexCoord;
2 uniform sampler2D sTexture;
3 uniform lowp vec4 uTextColorAnimatable;
4 uniform lowp vec4 uColor;
5 uniform lowp vec3 mixColor;
6
7 void main()
8 {
9   mediump float textTexture = texture2D( sTexture, vTexCoord ).r;
10
11   // Set the color of the text to what it is animated to.
12   gl_FragColor = uTextColorAnimatable * textTexture * uColor * vec4( mixColor, 1.0 );
13 }