triangle has now colors
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0) out vec4 color;
|
||||
layout(location = 0) out vec4 f_color;
|
||||
|
||||
in vec4 v_color;
|
||||
|
||||
void main() {
|
||||
color = vec4(1.0f, 1.0f, 0.0f, 1.0f);
|
||||
f_color = v_color;
|
||||
}
|
||||
Reference in New Issue
Block a user