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

11
shader.fs Normal file
View File

@@ -0,0 +1,11 @@
#version 330 core
in vec2 TexCoords;
out vec4 color;
uniform sampler2D image;
uniform vec3 spriteColor;
void main()
{
color = vec4(spriteColor, 1.0) * texture(image, TexCoords);
}