From ea44da4991a64c82586d1663e099323cc42b09b9 Mon Sep 17 00:00:00 2001 From: wheaney <42350981+wheaney@users.noreply.github.com> Date: Fri, 14 Feb 2025 20:35:03 -0800 Subject: [PATCH] Loosen the clamp on the scanline look-ahead --- gnome/src/virtualmonitorsactor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnome/src/virtualmonitorsactor.js b/gnome/src/virtualmonitorsactor.js index e446112..3c250b6 100644 --- a/gnome/src/virtualmonitorsactor.js +++ b/gnome/src/virtualmonitorsactor.js @@ -564,7 +564,7 @@ export const VirtualMonitorEffect = GObject.registerClass({ // the top and 1.0 is the bottom. vectors that project outside the vertical range of the display will have values // outside this range, but capped float vectorToScanline(float fovVerticalRadians, vec3 v) { - return clamp(1.0 - (-v.y / (tan(fovVerticalRadians / 2.0) * v.z) + 1.0) / 2.0, -0.5, 1.5); + return clamp(1.0 - (-v.y / (tan(fovVerticalRadians / 2.0) * v.z) + 1.0) / 2.0, -1.5, 2.5); } `;