Repository navigation
MW4VR v11.92
v11.92: the projection's near term read right - our cockpit no longer goes missing (#12)
The near term n was taken as row 2's last element of the world-to-clip
matrix. That is n plus a term that depends on where the camera stands and
where it looks; the true n (1.0 in the game) is row 2's last element less
(row 2 . forward) times row 3's last. The value read ranged from -0.07 to
1.94 on one spot of "Eaton - Governor" over a turn of the head. Below 0
the cockpit's transform was not built: our own cockpit was not drawn and
the game's was shown instead - seen when looking right in that mission.
Elsewhere the wrong n scaled the cockpit's own movement by up to two.
SHA-256 of the package: e18c1eb01c0c1223308fcd2ba934f41ece95b7df85a7020690ade106d57d36dd