2013-05-21 08:33:02 +00:00
|
|
|
#version 140
|
|
|
|
uniform vec4 u_frontColor;
|
|
|
|
uniform vec4 u_backColor;
|
|
|
|
|
2015-11-30 14:48:14 +00:00
|
|
|
in vec2 texcoord0;
|
2013-05-21 08:33:02 +00:00
|
|
|
|
|
|
|
out vec4 fragColor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2015-11-30 14:48:14 +00:00
|
|
|
fragColor = u_frontColor*(1.0-texcoord0.s) + u_backColor*texcoord0.s;
|
2013-05-21 08:33:02 +00:00
|
|
|
}
|