pulled out the draw call. forgot to allocate buffers
This commit is contained in:
@@ -3,6 +3,16 @@ layout(location = 0) in vec4 out_color;
|
||||
|
||||
layout(location = 0) out vec4 f_color;
|
||||
|
||||
|
||||
void main() {
|
||||
f_color = out_color;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,6 +5,12 @@ layout(location = 1) in vec4 color;
|
||||
layout(location = 0) out vec4 out_color;
|
||||
|
||||
void main() {
|
||||
out_color = color;
|
||||
// out_color = color;
|
||||
gl_Position = vec4(position, 0.0, 1.0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user