engineer-thesis-WUT/learnOpenGl/engine/Shaders/fragmentShaderTexture.fs

17 lines
331 B
Forth
Raw Normal View History

2023-03-05 20:02:41 +01:00
#version 330 core
out vec4 FragColor;
2023-03-12 14:46:56 +01:00
2023-03-05 20:02:41 +01:00
in vec3 ourColor;
in vec2 TexCoord;
2023-03-12 14:46:56 +01:00
// texture samplers
uniform sampler2D texture1;
uniform sampler2D texture2;
2023-03-05 20:02:41 +01:00
void main()
{
2023-03-12 14:46:56 +01:00
// linearly interpolate between both textures (80% container, 20% awesomeface)
FragColor = mix(texture(texture1, TexCoord), texture(texture2, TexCoord), 0.2);
}