summaryrefslogtreecommitdiff
path: root/themes/src/_shaders/renderer3d.vert
blob: 026285f76b2e9b08512dd32ce4016505647a9886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
attribute vec4 position;
attribute vec4 color;
attribute vec4 normal;
uniform mat4 projection;
uniform mat4 view;
uniform mat4 model;
varying lowp vec4 VertexColor;
varying lowp vec4 VertexNormal;

void main() {
    vec4 fragmentPosition = projection * view * model * position;
    gl_Position = fragmentPosition;
    VertexColor = color;
    VertexNormal = normal;
}