18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-21 16:44:58 +01:00

Sample the fog cells in their middle across the view and dither the output

This commit is contained in:
2026-10-17 00:11:27 +02:00
parent aa522d7376
commit e8dbaf70a9
7 changed files with 47 additions and 22 deletions

View File

@@ -6,6 +6,8 @@ layout(location = 0) out vec4 out_color;
uniform sampler2D iChannel0;
#include <dither.glsl>
vec2 barrelDistortion(vec2 f_coords, float amt) {
vec2 cc = f_coords - 0.5;
float dist = dot(cc, cc);
@@ -54,4 +56,5 @@ void main()
}
out_color = sumcol / sumw;
out_color.rgb = dither_output(out_color.rgb);
}