We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c29a7e commit 0637f57Copy full SHA for 0637f57
src/projection.rs
@@ -336,7 +336,7 @@ impl<S: BaseFloat> From<PlanarFov<S>> for Matrix4<S> {
336
}
337
338
let two: S = cast(2).unwrap();
339
- let inv_f = Rad::tan(persp.fovy / two);
+ let inv_f = Rad::tan(persp.fovy / two) * two / persp.height;
340
341
let focal_point = -inv_f.recip();
342
0 commit comments