should compute frustumReverseZ1ms ‣
const left = 2;
const right = 4;
const top = 10;
const bottom = 30;
const near = 15;
const far = 25;
const dx = (right - left);
const dy = (top - bottom);
const dz = (far - near);
const expected = [
2 * near / dx,
0,
0,
0,
0,
2 * near / dy,
0,
0,
(left + right) / dx,
(top + bottom) / dy,
near / dz,
-1,
0,
0,
near * far / dz,
0,
];
testMat4WithAndWithoutDest((newDst) => {
return mat4.frustumReverseZ(left, right, bottom, top, near, far, newDst);
}, expected);