Fix skybox horizon distortion
The skybox vertex shader normalized the reconstructed eye direction
per-vertex and let it interpolate across the fullscreen primitive. The
unprojected ray is affine in screen position, so normalizing per-vertex
scales each corner by a different length and warps the interpolant. This
is invisible for a symmetric frustum (all corner rays share one length,
so it is a uniform scale) but bends the horizon on the off-axis, per-eye
asymmetric projections of XR headsets.
Defer normalization to the fragment shader so the interpolated direction
stays affine and is exact per fragment.
Pick-to: 6.8 6.11 6.12
Change-Id: Ie7b1f99c444526b3c3166e08729f1d8f7a875578
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>