18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-24 13:09:16 +01:00

Merge branch 'master' into feat/renderers-cleanup

This commit is contained in:
2026-11-23 18:27:27 +01:00
70 changed files with 2865 additions and 378 deletions

View File

@@ -34,6 +34,10 @@ void main()
vec2 offset = velocity * (float(i) / float(nSamples - 1) - 0.5);
vec2 coord = f_coords + offset;
// a sample off the picture would read its edge row again and again: a fast movement towards the bottom
// of the screen (the ground racing under a low free camera) smeared it into a bright band there
if (any(lessThan(coord, 0.5 * texelSize)) || any(greaterThan(coord, vec2(1.0) - 0.5 * texelSize)))
continue;
float depth = texture(depth_tex, coord).x;
if (abs(depth - ori_depth) < depth_diff)

View File

@@ -36,6 +36,10 @@ void main()
vec2 offset = velocity * (float(i) / float(nSamples - 1) - 0.5);
vec2 coord = f_coords + offset;
// a sample off the picture would read its edge row again and again: a fast movement towards the bottom
// of the screen (the ground racing under a low free camera) smeared it into a bright band there
if (any(lessThan(coord, 0.5 * texelSize)) || any(greaterThan(coord, vec2(1.0) - 0.5 * texelSize)))
continue;
float depth = texture(depth_tex, coord).x;
if (abs(depth - ori_depth) < depth_diff)