2021-05-26 17:23:13 +02:00
|
|
|
#version 410 core
|
2021-05-19 15:00:12 +02:00
|
|
|
|
2021-05-13 20:40:21 +02:00
|
|
|
out vec4 FragColor;
|
|
|
|
|
2021-05-19 15:00:12 +02:00
|
|
|
in vec4 color;
|
|
|
|
in vec2 texCoord;
|
2021-05-14 20:46:17 +02:00
|
|
|
|
2021-05-17 05:39:23 +02:00
|
|
|
uniform sampler2D texture1;
|
2021-05-26 17:23:13 +02:00
|
|
|
uniform float time;
|
2021-05-14 18:47:05 +02:00
|
|
|
|
2021-05-13 20:40:21 +02:00
|
|
|
void main()
|
|
|
|
{
|
2021-05-26 17:23:13 +02:00
|
|
|
vec4 tex = texture(texture1, texCoord);
|
|
|
|
if (tex.a == 0.0){
|
|
|
|
FragColor = tex;
|
|
|
|
} else{
|
|
|
|
FragColor = mix(tex, color, 0.5);
|
|
|
|
}
|
2021-05-13 20:40:21 +02:00
|
|
|
}
|