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

13 lines
210 B
GLSL
Raw Normal View History

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