Added manual VAO usage, moved shader assignment to Trace log
This commit is contained in:
8
hexworld/res/direct.vs.glsl
Normal file
8
hexworld/res/direct.vs.glsl
Normal 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
6
hexworld/res/red.fs.glsl
Normal file
@@ -0,0 +1,6 @@
|
||||
#version 440
|
||||
|
||||
void main ()
|
||||
{
|
||||
gl_FragColor = vec4(1,0,0,1);
|
||||
}
|
||||
6
hexworld/res/white.fs.glsl
Normal file
6
hexworld/res/white.fs.glsl
Normal file
@@ -0,0 +1,6 @@
|
||||
#version 440
|
||||
|
||||
void main ()
|
||||
{
|
||||
gl_FragColor = vec4(1);
|
||||
}
|
||||
Reference in New Issue
Block a user