summaryrefslogtreecommitdiff
path: root/themes/Renderer2d_Vertex.glsl
blob: f3ab653c62571463c801a8e4a1dcf9e7e61f2799 (plain)
1
2
3
4
5
6
7
8
9
10
attribute vec2 position;
attribute vec4 color;
uniform mat4 projection;
uniform mat4 model;
varying lowp vec4 VertexColor;
void main() {
    vec4 fragmentPosition = projection * model * vec4(position, 1, 1);
    gl_Position = fragmentPosition;
    VertexColor = color;
};