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:
@ -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;
|
||||
}
|
@ -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()
|
||||
|
Reference in New Issue
Block a user