aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/shaders/vertexcolor.vert
blob: 750d520114b92d5c16165dd8b1c1c980cbb52573 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
attribute highp vec4 vertexCoord;
attribute highp vec4 vertexColor;

uniform highp mat4 matrix;
uniform highp float opacity;

varying lowp vec4 color;

void main()
{
    gl_Position = matrix * vertexCoord;
    color = vertexColor * opacity;
}