Loosen the clamp on the scanline look-ahead

This commit is contained in:
wheaney 2025-02-14 20:35:03 -08:00
parent a69560a909
commit ea44da4991
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
`;