OpenGL-utility/examples/debug/shaders/fragmentShader.frag

12 lines
196 B
GLSL
Raw Permalink Normal View History

2021-01-20 15:51:55 +00:00
#version 330 core
2021-01-21 11:07:43 +00:00
in vec2 oUV;
2021-01-20 15:51:55 +00:00
out vec4 FragColor;
2021-01-21 15:11:41 +00:00
uniform sampler2D texture1;
uniform sampler2D texture2;
2021-01-20 16:57:00 +00:00
2021-01-20 15:51:55 +00:00
void main()
{
2021-01-21 15:11:41 +00:00
FragColor = mix(texture(texture1, oUV), texture(texture2, oUV), 0.2);
2021-01-20 15:51:55 +00:00
}