Hi, my question is simple but I can’t find answer anywere.
I draw rectangle with rWidth that (0, 0) is in the center. How far translate it to deep along Z axis so as to left and right border of rect touch exactly screen border with sWidth?
I find this: sWidth/sin(45) but this isn’t precise (bit deeply). Is there any formula on this?
It works for me with height, because my gluPerspective function was calculated on fov in horizontal along y axis.
Im actualy changing to fovx, thanks a lot.