Part 2 of the perspective matrix video.
Correction: It should be A(-n) + B = n and A(-f) + B = -f. The reason is that the extra division step (division by the fourth element of the array, -z) will cause n/-n = -1 and -f/-f = 1, the values we want. So we account for that now by making the the values of A and B such that -n goes to n and -f goes to -f. The final result (n+f)/(n-f) and 2nf/(n-f) is still correct.
New video every Thursday. Question? Leave a comment below, or ask me on Twitter: https://twitter.com/VinoBS
Find the source code here: https://github.com/BSVino/MathForGame...