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
This commit is contained in:
Stefan Dresselhaus
2014-01-03 03:01:54 +01:00
parent 306381c4ed
commit e5193fc7c5
9 changed files with 1225 additions and 535 deletions

View File

@ -1,12 +1,13 @@
#version 140
#color from earlier stages
//color from earlier stages
smooth in vec4 fg_SmoothColor;
#color of pixel
//color of pixel
out vec4 fg_FragColor;
void main(void)
{
fg_FragColor = fg_SmoothColor; #copy-shader
)
//copy-shader
fg_FragColor = fg_SmoothColor;
}

View File

@ -1,14 +1,14 @@
#version 140
#constant projection matrix
//constant projection matrix
uniform mat4 fg_ProjectionMatrix;
#vertex-data
//vertex-data
in vec4 fg_Color;
in vec4 fg_Vertex;
in vec4 fg_Normal;
#output-data for later stages
//output-data for later stages
smooth out vec4 fg_SmoothColor;
void main()