diff --git a/src/projection.rs b/src/projection.rs index 5e8f67bd..c7bf0f39 100644 --- a/src/projection.rs +++ b/src/projection.rs @@ -336,7 +336,7 @@ impl From> for Matrix4 { } let two: S = cast(2).unwrap(); - let inv_f = Rad::tan(persp.fovy / two); + let inv_f = Rad::tan(persp.fovy / two) * two / persp.height; let focal_point = -inv_f.recip();