added barebones ui rendering

This commit is contained in:
2026-04-20 15:36:30 +02:00
parent 96c1faa626
commit a324ff0d16
9 changed files with 230 additions and 6 deletions

16
Shaders/ui.frag Normal file
View File

@@ -0,0 +1,16 @@
#version 440 core
in vec2 TexCoord;
in vec4 Color;
out vec4 FragColor;
uniform sampler2D uTexture; // Ensure this name matches C# exactly
void main()
{
vec4 texColor = texture(uTexture, TexCoord);
// If you don't use texColor, uTexture gets deleted by the compiler
FragColor = texColor * Color;
}