disco
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#version 330 core
|
||||
in vec3 frag_col;
|
||||
out vec4 FragColor;
|
||||
|
||||
uniform vec4 MyColor;
|
||||
void main()
|
||||
{
|
||||
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
|
||||
FragColor = vec4(frag_col, 1.0f);//vec4(posInWorld.x, posInWorld.y, posInWorld.z, 1.0f);
|
||||
}
|
||||
@@ -1,6 +1,10 @@
|
||||
#version 330 core
|
||||
layout (location = 0) in vec3 aPos;
|
||||
layout (location = 1) in vec3 col;
|
||||
out vec3 frag_col;
|
||||
|
||||
void main()
|
||||
{
|
||||
frag_col = col;
|
||||
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user