2014-05-03 13:17:33 +00:00
|
|
|
#version 330
|
|
|
|
|
|
|
|
in vec3 Position;
|
|
|
|
in vec3 Normal;
|
2014-05-19 19:42:58 +00:00
|
|
|
uniform mat4 ProjectionMatrix;
|
|
|
|
uniform mat4 ViewMatrix;
|
|
|
|
uniform mat3 NormalMatrix;
|
|
|
|
uniform vec3 PositionOffset;
|
|
|
|
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;
|
|
|
|
gl_Position = vec4(Position, 1.0);
|
|
|
|
vNormal = Normal;
|
|
|
|
}
|
|
|
|
|