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

const char* shader_renderer3d_vert = "attribute vec4 position; \n"
"attribute vec4 color; \n"
"attribute vec4 normal; \n"
"uniform mat4 projection; \n"
"uniform mat4 view; \n"
"uniform mat4 model; \n"
"varying lowp vec4 VertexColor; \n"
"varying lowp vec4 VertexNormal; \n"
" \n"
"void main() { \n"
"    vec4 fragmentPosition = projection * view * model * position; \n"
"    gl_Position = fragmentPosition; \n"
"    VertexColor = color; \n"
"    VertexNormal = normal; \n"
"} \n"
" \n";