Fix foveation center

This commit is contained in:
Patrick Nicolas
2025-06-17 23:35:46 +02:00
parent ab921c213c
commit 5955b2c622
+5
View File
@@ -236,6 +236,11 @@ void wivrn_foveation::compute_params(
tan_center[i].y = angles_to_center(-view.y - e.y, views[i].fov.angleUp, views[i].fov.angleDown);
}
}
else
{
for (size_t i = 0; i < 2; ++i)
tan_center[i].x = angles_to_center(0, fovs[i].angle_left, fovs[i].angle_right);
}
for (int i = 0; i < 2; ++i)
{