mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
13 lines
270 B
C++
13 lines
270 B
C++
#version 330 core
|
|
out vec4 FragColor;
|
|
|
|
in vec3 ourColor;
|
|
in vec2 TexCoord;
|
|
|
|
uniform sampler2D ourTexture1;
|
|
uniform sampler2D ourTexture2;
|
|
|
|
void main()
|
|
{
|
|
FragColor = mix(texture(ourTexture1, TexCoord), texture(ourTexture2, vec2(1.0 - TexCoord.x, TexCoord.y)), 0.2);
|
|
} |