1
0

Rendering sprites

This commit is contained in:
2022-10-19 17:30:18 +02:00
parent e211fb13c3
commit d1963f08c6
8 changed files with 138 additions and 4 deletions

13
shader.vs Normal file
View File

@@ -0,0 +1,13 @@
#version 330 core
layout (location=0) in vec4 vertex;
out vec2 TexCoords;
uniform mat4 model;
uniform mat4 projection;
void main()
{
TexCoords = vertex.zw;
gl_Position = projection * model * vec4(vertex.xy, 0.0, 1.0);
}