you can now print images on the screen

This commit is contained in:
2026-04-16 00:29:05 +02:00
parent 291f774a95
commit 952c5062bc
7 changed files with 7523 additions and 9 deletions

View File

@@ -3,9 +3,12 @@
layout(location = 0) out vec4 f_color;
in vec4 v_color;
in vec2 v_texCoord;
uniform sampler2D u_texture;
uniform vec4 u_color;
void main() {
f_color = u_color;
vec4 texColor = texture(u_texture, v_texCoord);
f_color = texColor;
}