Kelsi
39f4a433ff
fix(camera): NaN-safe getRight/getUp when forward ~= world up
...
If forward is parallel to (0,0,1) — camera staring straight up or
down — the cross product is zero and glm::normalize returned NaN.
That NaN flowed into glm::lookAt and produced a NaN view matrix.
The editor camera clamps pitch to +/-89 so it doesn't trigger,
but other call sites or scripted test paths could construct a
Camera at +/-90 and immediately blow up. Length-check the cross
and fall back to world +X / +Z.
2026-05-06 08:55:49 -07:00
..
2026-04-05 20:58:11 -07:00
2026-05-05 22:49:21 -07:00
2026-03-09 05:00:51 -07:00
2026-03-24 10:06:57 -07:00
2026-04-05 19:10:42 -07:00
2026-04-05 12:27:35 +03:00
2026-05-06 08:55:49 -07:00
2026-04-04 23:02:53 +03:00
2026-04-14 06:06:50 -07:00
2026-05-05 22:49:21 -07:00
2026-03-30 17:23:07 -07:00
2026-03-24 09:47:03 -07:00
2026-03-30 15:02:47 -07:00
2026-04-06 16:40:59 +03:00
2026-03-28 11:35:10 +03:00
2026-02-19 20:36:25 -08:00
2026-03-30 15:23:58 -07:00
2026-03-28 11:35:10 +03:00
2026-03-27 14:53:29 -07:00
2026-04-07 11:27:59 +03:00
2026-05-06 08:49:26 -07:00
2026-04-05 20:41:33 +03:00
2026-04-07 11:27:59 +03:00
2026-05-06 08:36:11 -07:00
2026-05-06 08:51:31 -07:00
2026-02-02 13:03:22 -08:00
2026-04-12 20:02:50 +03:00
2026-03-28 11:35:10 +03:00
2026-04-05 19:30:44 +03:00
2026-04-05 19:30:44 +03:00
2026-04-03 21:13:35 -07:00
2026-03-28 11:35:10 +03:00
2026-04-04 13:43:16 +03:00
2026-05-05 12:41:19 -07:00
2026-03-27 16:33:16 -07:00
2026-03-30 14:38:30 -07:00
2026-04-14 06:06:50 -07:00
2026-03-30 14:38:30 -07:00
2026-03-30 17:23:07 -07:00
2026-05-06 04:10:12 -07:00
2026-04-04 23:02:53 +03:00
2026-02-21 22:04:17 -08:00
2026-04-06 16:40:59 +03:00
2026-04-04 13:43:16 +03:00
2026-03-24 11:44:54 -07:00
2026-03-30 14:24:41 -07:00
2026-05-05 22:49:21 -07:00
2026-03-07 12:19:59 -08:00
2026-04-03 19:48:43 -07:00
2026-03-30 14:38:30 -07:00
2026-05-06 08:47:31 -07:00