LearnOpenGL/shader.fs

12 lines
238 B
Forth
Raw Normal View History

2022-02-11 21:24:15 +00:00
#version 460 core
out vec4 FragColor;
2022-02-12 20:38:31 +00:00
in vec2 TexCoord;
uniform sampler2D texture1;
uniform sampler2D texture2;
2022-02-11 21:24:15 +00:00
void main()
{
2022-02-12 20:38:31 +00:00
FragColor = mix(texture(texture1, TexCoord) , texture(texture2, vec2(-TexCoord.x , TexCoord.y)), 0.2);
2022-02-11 21:24:15 +00:00
}