summaryrefslogtreecommitdiff
path: root/resources/shaders/anchorPoint.vert
blob: 784dbfb79e4af8349d913253d0bb88e2d89a473c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 330 core

layout(location = 0) in vec3 position; // Position of the vertex
layout(location = 2) in vec3 vcolor;   // Normal of the vertex


uniform mat4 proj;
uniform mat4 view;
uniform mat4 model;

out vec4 vColor;

void main() {
    vColor = vec4(vcolor, 1.0);

    gl_Position = proj * view * model * vec4(position, 1.0);
}