Bezos2 is my latest version of the Bezos learning project that uses raw OpenGL and C++ with Lua.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Bezos2/shaders/rect.vert.glsl

9 lines
257 B

#version 460 core
layout (location = 0) in vec2 aPos; // the position variable has attribute position 0
uniform mat4 projection;
void main()
{
gl_Position = projection * vec4(aPos, 0.0, 1.0); // see how we directly give a vec3 to vec4's constructor
}