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/image.vert.glsl

15 lines
313 B

#version 460 core
// in the original this was vec3 but in image.cpp:88 it's a 2 element float so WTF?
layout (location = 0) in vec2 aPos;
layout (location = 1) in vec2 aTexCoord;
out vec2 TexCoord;
uniform mat4 transform;
void main()
{
gl_Position = transform * vec4(aPos, 0.0, 1.0);
TexCoord = aTexCoord;
}