lighting setup

This commit is contained in:
Claire Schwarzer 2026-02-07 00:01:56 +01:00
parent ccc1c76762
commit 16b674efc1
4 changed files with 85 additions and 90 deletions

View file

@ -8,5 +8,9 @@ uniform sampler2D decal;
void main()
{
FragColor = mix(texture(ourTexture, TexCoord), texture(decal, TexCoord), 0.2f);
}
vec4 tex1 = texture(ourTexture, TexCoord);
vec4 tex2 = texture(decal, TexCoord);
vec4 textures = mix(tex1, tex2, 0.2f);
FragColor = textures;
}