16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 11:39:19 +02:00
This commit is contained in:
2026-05-24 21:48:05 +02:00
parent 5b51188dfe
commit 2c599cb419
46 changed files with 2034 additions and 85 deletions

View File

@@ -0,0 +1,28 @@
in vec2 f_uv;
in vec4 f_pos;
#texture (tex1, 0, sRGB_A)
uniform sampler2D tex1;
#include <common>
#include <apply_fog.glsl>
#include <tonemapping.glsl>
layout(location = 0) out vec4 out_color;
#if MOTIONBLUR_ENABLED
layout(location = 1) out vec4 out_motion;
#endif
void main()
{
vec4 col = texture(tex1, f_uv);
if (col.a < 0.01) discard;
#if POSTFX_ENABLED
out_color = vec4(apply_fog(col.rgb), col.a);
#else
out_color = tonemap(vec4(apply_fog(col.rgb), col.a));
#endif
#if MOTIONBLUR_ENABLED
out_motion = vec4(0.0);
#endif
}