Add recentering

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-08-11 09:29:38 +03:00
parent e3b2f44621
commit 794178668e
4 changed files with 89 additions and 18 deletions

View File

@@ -190,6 +190,10 @@ typedef struct LunarWM {
PFN_xrDestroyHandTrackerEXT DestroyHandTrackerEXT;
PFN_xrLocateHandJointsEXT LocateHandJointsEXT;
Quaternion recenter_rot;
Vector3 recenter_trans;
bool recenter_active;
bool session_running;
} xr;
@@ -201,8 +205,6 @@ typedef struct LunarWM {
Camera3D camera;
Shader linear_srgb;
Vector3 center;
Skybox skybox;
} renderer;