Previously vertex data was only in shaders. I have removed it from there and put hardcoded vertex data into cpp source code.
8 lines
147 B
GLSL
8 lines
147 B
GLSL
#version 450
|
|
|
|
layout(location = 0) in vec3 fragColor;
|
|
layout(location = 0) out vec4 outColor;
|
|
|
|
void main() {
|
|
outColor = vec4(fragColor, 1.0);
|
|
} |