summaryrefslogtreecommitdiff
path: root/shaders/vertex.glsl
blob: 2af2c7e9c7ba12228d5955aa27ae630ec11cfdc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 410 core

layout(location=0) in vec3 pos;
layout(location=1) in vec3 v_normal;
uniform mat4 model;
uniform mat4 view;
uniform mat4 perspective;
out vec3 normal;
out vec3 frag_pos;
void main() {
  gl_Position = perspective*view*model*vec4(pos, 1.0);
  normal = v_normal;
  frag_pos = vec3(model*vec4(pos, 1.0));

};