summaryrefslogtreecommitdiff
path: root/inc/opengl/shaders/basicshader.vert
blob: f17aef568c49c2eb7d4762d32c5d9d2b65504c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 320 es
in highp vec2 pos;
in highp vec3 color;
in highp float sides;
uniform mat4 MVP;

out highp vec3 fColor;
out highp float vSides;

void main()
{
    gl_Position = MVP * vec4(pos, 0.0, 1.0);
    fColor = color;
    vSides = sides;
}