try to fix FOV
parent
48304de5e6
commit
3916ff16da
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue