2014-01-02 02:35:38 +00:00
|
|
|
#version 140
|
|
|
|
|
2014-01-03 02:01:54 +00:00
|
|
|
//constant projection matrix
|
2014-01-02 02:35:38 +00:00
|
|
|
uniform mat4 fg_ProjectionMatrix;
|
|
|
|
|
2014-01-03 02:01:54 +00:00
|
|
|
//vertex-data
|
2014-01-02 02:35:38 +00:00
|
|
|
in vec4 fg_Color;
|
|
|
|
in vec4 fg_Vertex;
|
|
|
|
in vec4 fg_Normal;
|
|
|
|
|
2014-01-03 02:01:54 +00:00
|
|
|
//output-data for later stages
|
2014-01-02 02:35:38 +00:00
|
|
|
smooth out vec4 fg_SmoothColor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
fg_SmoothColor = fg_Color;
|
|
|
|
gl_Position = fg_ProjectionMatrix * fg_Vertex;
|
|
|
|
}
|