pioneers/shaders/mapobjects/vertex.shader
Stefan Dresselhaus 324d7037bf
changed much render-code.
- mapobjects and map get intitialized different
- added mapobjects-data to Types

refs #482 @3h
2014-05-19 21:42:58 +02:00

21 lines
442 B
GLSL

#version 330
in vec3 Position;
in vec3 Normal;
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
out vec3 vPosition;
out vec3 vNormal;
void main () {
vPosition = Position;
gl_Position = vec4(Position, 1.0);
vNormal = Normal;
}