parent
8fa8b95246
commit
25a0f13ba2
@ -1,6 +1,8 @@ |
||||
#version 330 core |
||||
out vec4 FragColor; |
||||
|
||||
uniform vec4 inputColor; |
||||
|
||||
void main() { |
||||
FragColor = vec4(1.0f, 1.0f, 1.0f, 0.0f); |
||||
FragColor = inputColor; |
||||
} |
||||
|
@ -1,7 +1,9 @@ |
||||
#version 330 core |
||||
layout (location = 0) in vec3 aPos; |
||||
|
||||
void main() |
||||
{ |
||||
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0); |
||||
out vec4 vertexColor; |
||||
|
||||
void main() { |
||||
gl_Position = vec4(aPos, 1.0); |
||||
vertexColor = vec4(1.0f, 1.0f, 1.0f, 0.0f); |
||||
} |
||||
|
Loading…
Reference in new issue