summaryrefslogtreecommitdiff
path: root/themes/src/shaders/renderer2d_vert.cpp
blob: 9b4182eecc3b6ed68707aa1b8e0a8ab0bd90af35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "renderer2d_vert.h"

const char* shader_renderer2d_vert = " \n"
"attribute vec2 position;  \n"
"attribute vec4 color;  \n"
"attribute mat4 vMatrix;  \n"
"uniform mat4 projection;  \n"
"uniform mat4 model;  \n"
"varying lowp vec4 VertexColor; \n"
" \n"
"void main() {  \n"
"    vec4 fragmentPosition = projection * model * vMatrix * vec4(position.x, position.y, 0, 1);  \n"
"    gl_Position = fragmentPosition;  \n"
"    VertexColor = color;  \n"
"} \n"
" \n";