Added basic object wrapper for VAOs
This commit is contained in:
parent
c3e49cd78e
commit
8921957161
7 changed files with 162 additions and 17 deletions
9
examples/debug/shaders/fragmentShader.frag
Normal file
9
examples/debug/shaders/fragmentShader.frag
Normal file
|
@ -0,0 +1,9 @@
|
|||
#version 330 core
|
||||
in vec3 oCol;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = vec4(oCol, 1.0f);
|
||||
}
|
|
@ -1,7 +1,11 @@
|
|||
#version 330 core
|
||||
layout (location = 0) in vec3 aPos;
|
||||
layout (location = 1) in vec3 aCol;
|
||||
|
||||
out vec3 oCol;
|
||||
|
||||
void main()
|
||||
{
|
||||
oCol = aCol;
|
||||
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue