Added manual VAO usage, moved shader assignment to Trace log

This commit is contained in:
2017-03-11 15:12:26 -05:00
parent 9760093f39
commit 93d138623d
6 changed files with 88 additions and 14 deletions

View File

@@ -0,0 +1,8 @@
#version 440
in vec3 v;
void main ()
{
gl_Position = vec4(v, 1);
}

6
hexworld/res/red.fs.glsl Normal file
View File

@@ -0,0 +1,6 @@
#version 440
void main ()
{
gl_FragColor = vec4(1,0,0,1);
}

View File

@@ -0,0 +1,6 @@
#version 440
void main ()
{
gl_FragColor = vec4(1);
}