Shadowmap: fix degenerate slice plane transform
Previously, for forward vectors aligned with the Z axis (e.g., unrotated
camera), the old logic computed a right vector of (0, 0, 0), producing a
degenerate transform.
This commit replaces the ad-hoc computation with a proper orthonormal
basis. It picks a reference axis least aligned with the forward vector
to give a stable transform.
Fixes: QTBUG-143629
Pick-to: 6.11 6.10 6.8
Change-Id: Ia4069d594b3936a3f4efd5bb9b6cbac16a2aeb62
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
Reviewed-by: Andrei Yankovich <EndrIIMail@gmail.com>