From e8788965955506942d5d3d8cd0b857475c781731 Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Wed, 4 Feb 2026 11:29:08 +0900 Subject: [PATCH] fix foveation for VIEW-relative gaze --- server/driver/wivrn_foveation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/driver/wivrn_foveation.cpp b/server/driver/wivrn_foveation.cpp index 43e4611a..cde6b75e 100644 --- a/server/driver/wivrn_foveation.cpp +++ b/server/driver/wivrn_foveation.cpp @@ -276,7 +276,7 @@ void wivrn_foveation::compute_params( if (foveated_width < extent_w) { auto distance = manual_foveation.enabled ? manual_foveation.distance : convergence_distance; - auto angle_x = convergence_angle(distance, eye_x[i], e.x); + auto angle_x = convergence_angle(distance, eye_x[i], -e.x); auto center = angles_to_center(angle_x, fov.angle_left, fov.angle_right); fill_param_2d(center, foveated_width, extent_w, params[i].x); } @@ -286,7 +286,7 @@ void wivrn_foveation::compute_params( size_t extent_h = std::abs(src[i].extent.h); if (foveated_height < extent_h) { - auto angle_y = e.y; + auto angle_y = -e.y; if (is_zero_quat(gaze) and not manual_foveation.enabled) { // Natural gaze is not straight forward, adjust the angle