3 layout( location = 0 ) in vec2 vTexCoord;
5 layout( set = 0, binding = 1, std140 ) uniform FragData
7 vec4 uTextColorAnimatable;
10 float preMultipliedAlpha;
13 layout( set = 0, binding = 2) uniform sampler2D sTexture;
15 layout( location = 0 ) out vec4 fragColor;
19 float textTexture = texture( sTexture, vTexCoord ).r;
21 // Set the color of the text to what it is animated to.
22 fragColor = uTextColorAnimatable * textTexture * uColor * vec4(mixColor,1.0);