16 lines
289 B
GLSL
16 lines
289 B
GLSL
#version 330 core
|
|
out vec4 FragColor;
|
|
|
|
in vec2 TexCoord;
|
|
|
|
uniform sampler2D ourTexture;
|
|
uniform sampler2D decal;
|
|
|
|
void main()
|
|
{
|
|
vec4 tex1 = texture(ourTexture, TexCoord);
|
|
vec4 tex2 = texture(decal, TexCoord);
|
|
vec4 textures = mix(tex1, tex2, 0.2f);
|
|
|
|
FragColor = textures;
|
|
}
|