rohit.gonsalves Posted January 10, 2021 Share Posted January 10, 2021 https://developer.unigine.com/en/docs/2.13/api/library/math/math.matrix?rlang=cpp#perspective_float_float_float_float Quote mat4 perspective ( float fov, float aspect, float znear, float zfar ) Returns perspective projection matrix. Arguments float fov - Field of view angle. float aspect - Aspect ratio. The aspect ratio is the ratio of width to height. float znear - Nearest depth clipping plane. float zfar - Farther depth clipping plane. Return value Perspective projection matrix. Please add the "horizontal" word to Field of view angle. Rohit Link to comment
fox Posted January 10, 2021 Share Posted January 10, 2021 Thanks for pointing out, Rohit! We'll surely add that and update the docs! Link to comment
Recommended Posts