2023-02-08 14:40:15 +01:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
|
|
uniform sampler2D tex;
|
|
|
|
|
uniform sampler2D tex2;
|
|
|
|
|
|
2024-08-15 20:29:14 +02:00
|
|
|
in vec2 tex_coord;
|
|
|
|
|
out vec4 frag_color;
|
2023-02-08 14:40:15 +01:00
|
|
|
|
|
|
|
|
void main() {
|
2024-08-15 20:29:14 +02:00
|
|
|
vec4 current = textureLod(tex, tex_coord, 0.0);
|
2025-02-14 17:28:59 +01:00
|
|
|
vec4 previous = textureLod(tex2, tex_coord, 0.0);
|
|
|
|
|
frag_color = vec4(mix(current.rgb, previous.rgb, 0.5), 1.0);
|
2023-02-08 14:40:15 +01:00
|
|
|
}
|