summaryrefslogtreecommitdiff
path: root/advanced_lighting/6.hdr/shaders/normals_debug.vert
blob: 2d3a4b58802a9b7487344651fb57e67b31a39b67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#version 330 core
layout(location = 0) in vec3 apos;
layout(location = 1) in vec3 anormal;

out VS_OUT {
	vec4 normal;
} vs_out;

uniform mat4 view;
uniform mat4 model;

void main(void)
{
	vs_out.normal = view*model*vec4(normalize(anormal), 0.0);
	gl_Position = view*model*vec4(apos, 1.0);
}