to upload a single part of a larger buffer
to upload a single part of a larger buffer
const string fragmentCode = @"
// the version of glsl
#version 330 core
// i think out means to output something and out_color is the name of a variable?
out vec4 out_color;
// main function
void main()
{
// is vec4 an RGBA value with the color?
out_color = vec4(1.0, 0.5, 0.2, 1.0);
}
"; const string vertexCode = @"
#version 330 core
// wtf
layout (location = 0) in vec3 aPosition;
void main()
{
// create a variable called gl position and set it to full opacity and the first 3 values to whatever the fuck aposition is?
gl_Position = vec4(aPosition, 1.0);
}
";