try to fix FOV

main
_ 2021-12-19 23:04:02 +00:00
parent 48304de5e6
commit 3916ff16da
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ impl Graphics {
let screen_size = (320.0, 240.0); let screen_size = (320.0, 240.0);
let fov = 40.0f32; let fov = 39.6f32 * screen_size.1 / screen_size.0;
let proj_mat = Mat4::perspective_rh_gl (fov.to_radians (), screen_size.0 / screen_size.1, 0.125, 200.0); let proj_mat = Mat4::perspective_rh_gl (fov.to_radians (), screen_size.0 / screen_size.1, 0.125, 200.0);