We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm reading through this project to help with my own OpenGL project and I noticed line 180 of matrix.c:
ymax = znear * tanf(fov * PI / 360.0);
Is fov in degrees? If so the correct way to convert it to radians would be:
ymax = znear * tanf(fov * PI / 180.0);
The text was updated successfully, but these errors were encountered:
Yes, FOV is in degrees. The argument passed to tanf is half of the FOV.
Sorry, something went wrong.
No branches or pull requests
I'm reading through this project to help with my own OpenGL project and I noticed line 180 of matrix.c:
ymax = znear * tanf(fov * PI / 360.0);
Is fov in degrees? If so the correct way to convert it to radians would be:
ymax = znear * tanf(fov * PI / 180.0);
The text was updated successfully, but these errors were encountered: