pioneers/shaders/vertex.shader
Stefan Dresselhaus e5193fc7c5 Migrated to OpenGL3.x - compiles but renders nothing
- added simple shader
- rewrote map to cater BufferArray
- completele rewrote Main
- Split off stuff into Render-Module
- cleaned up .cabal-file to bare minimum
- created RenderObjects for the purpose of moving rendering there
2014-01-03 03:01:54 +01:00

18 lines
308 B
GLSL

#version 140
//constant projection matrix
uniform mat4 fg_ProjectionMatrix;
//vertex-data
in vec4 fg_Color;
in vec4 fg_Vertex;
in vec4 fg_Normal;
//output-data for later stages
smooth out vec4 fg_SmoothColor;
void main()
{
fg_SmoothColor = fg_Color;
gl_Position = fg_ProjectionMatrix * fg_Vertex;
}