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

const char* shader_sun_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";