added texture class, changed shader extension names

This commit is contained in:
Claire Schwarzer 2026-01-30 00:14:20 +01:00
parent 95be5f081e
commit 6fb3ffcfed
5 changed files with 58 additions and 53 deletions

View file

@ -0,0 +1,13 @@
#version 330 core
out vec4 FragColor;
in vec3 ourColor;
in vec2 TexCoord;
uniform sampler2D ourTexture;
uniform sampler2D decal;
void main()
{
FragColor = mix(texture(ourTexture, TexCoord), texture(decal, TexCoord), 0.2);
}