Cleaned up sprite render; use UVs

This commit is contained in:
2022-12-29 17:27:41 +00:00
parent 0bdfa9e814
commit 804c2de617
6 changed files with 43 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
#version 330 core
layout (location = 0) in vec2 vertex;
layout (location = 0) in vec4 vertex;
out vec2 texcoords;
layout (std140) uniform Projection
@@ -11,7 +11,6 @@ uniform mat4 model;
void main()
{
texcoords = vertex.xy;
texcoords.y *= -1;
texcoords = vertex.zw;
gl_Position = projection * model * vec4(vertex.xy, 0.0, 1.0);
}