summaryrefslogtreecommitdiff
path: root/themes/src/_shaders/renderer2d.vert
blob: 76150f06a6dc2286cb93f3ff392476e9cdffd161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

attribute vec2 position; 
attribute vec4 color; 
attribute mat4 vMatrix; 
uniform mat4 projection; 
uniform mat4 model; 
varying lowp vec4 VertexColor;

void main() { 
    vec4 fragmentPosition = projection * model * vMatrix * vec4(position.x, position.y, 0, 1); 
    gl_Position = fragmentPosition; 
    VertexColor = color; 
}