summary refs log tree commit diff stats
path: root/shaders/final.vertex
blob: 825eb495dccaedb9b0ac0a15a5c0b57611e71916 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 330 core

layout(location = 0) in vec3 vertexPosition_modelspace;
layout(location = 1) in vec3 vertexNormal;

out vec2 UV;
out vec3 norm;

void main()
{
  gl_Position = vec4(vertexPosition_modelspace,1);
  UV = (vertexPosition_modelspace.xy+vec2(1,1))/2.0;
  norm = vertexNormal;
}