5af011d80f30a7d6acba89dc24528d4caad6e7bb
[platform/core/uifw/dali-core.git] / dali / graphics / vulkan / shaders / text-visual-single-color-text-shader.frag
1 #version 430
2
3 layout( location = 0 ) in vec2 vTexCoord;
4
5 layout( set = 0, binding = 1, std140 ) uniform FragData
6 {
7   vec4 uTextColorAnimatable;
8   vec4 uColor;
9   vec3 mixColor;
10   float preMultipliedAlpha;
11 };
12
13 layout( set = 0, binding = 2) uniform sampler2D sTexture;
14
15 layout( location = 0 ) out vec4 fragColor;
16
17 void main()
18 {
19   float textTexture = texture( sTexture, vTexCoord ).r;
20
21   // Set the color of the text to what it is animated to.
22   fragColor = uTextColorAnimatable * textTexture * uColor * vec4(mixColor,1.0);
23 }