The open source OpenXR runtime

c/render: Stop timewarp stretching by changing math

Tested-by: BabbleBones <BabbleBones@protonmail.com>

+7 -1
+7 -1
src/xrt/compositor/render/render_util.c
··· 45 45 const float a43 = (float)(-(far_plane * near_plane) / (far_plane - near_plane)); 46 46 47 47 48 - #if 1 48 + #if 0 49 49 // We skip a33 & a43 because we don't have depth. 50 50 (void)a33; 51 51 (void)a43; ··· 61 61 }; 62 62 // clang-format on 63 63 #else 64 + /* 65 + * Apparently the timewarp doesn't look good without this path being 66 + * used. With the above it stretches out. I tried with the code to see 67 + * if I could affect the depth where the view was placed but couldn't 68 + * see to do it, which is a head scratcher. 69 + */ 64 70 // clang-format off 65 71 *result = (struct xrt_matrix_4x4_f64) { 66 72 .v = {