13 lines
219 B
Text
13 lines
219 B
Text
|
#version 140
|
||
|
uniform vec4 u_frontColor;
|
||
|
uniform vec4 u_backColor;
|
||
|
|
||
|
in vec2 varyingTexCoords;
|
||
|
|
||
|
out vec4 fragColor;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
fragColor = u_frontColor*(1.0-varyingTexCoords.s) + u_backColor*varyingTexCoords.s;
|
||
|
}
|