2014-05-03 13:17:33 +00:00
|
|
|
#version 330
|
|
|
|
|
2014-05-20 06:57:42 +00:00
|
|
|
layout(location=0) in vec3 Position;
|
|
|
|
layout(location=1) in vec3 Normal;
|
2014-07-08 13:32:14 +00:00
|
|
|
layout(location=2) in vec2 TexCoord;
|
2014-05-19 19:42:58 +00:00
|
|
|
uniform mat4 ProjectionMatrix;
|
|
|
|
uniform mat4 ViewMatrix;
|
|
|
|
uniform mat3 NormalMatrix;
|
2014-08-24 21:47:17 +00:00
|
|
|
uniform vec3 PositionOffset = vec3(5,2,5);
|
2014-05-19 19:42:58 +00:00
|
|
|
uniform float TessLevelInner = 1.0; // controlled by keyboard buttons
|
|
|
|
uniform float TessLevelOuter = 1.0; // controlled by keyboard buttons
|
2014-05-03 13:17:33 +00:00
|
|
|
|
|
|
|
out vec3 vPosition;
|
|
|
|
out vec3 vNormal;
|
|
|
|
|
2014-05-16 07:10:09 +00:00
|
|
|
void main () {
|
|
|
|
vPosition = Position;
|
2014-08-24 21:47:17 +00:00
|
|
|
//gl_Position = vec4(Position,1);
|
|
|
|
gl_Position = ProjectionMatrix * ViewMatrix * vec4(PositionOffset + Position, 1);
|
2014-05-16 07:10:09 +00:00
|
|
|
vNormal = Normal;
|
|
|
|
}
|