updated comment

This commit is contained in:
2025-03-17 09:14:42 +03:00
parent 4df0d38257
commit 89356546ca
5 changed files with 72 additions and 4 deletions
@@ -40,8 +40,7 @@ namespace omath::source_engine
inline Mat4x4 CalcPerspectiveProjectionMatrix(const float fieldOfView, const float aspectRatio, const float near,
const float far)
{
// NOTE: Needed tp make thing draw normal, since source is wierd
// and use tricky projection matrix formula.
// NOTE: Need magic number to fix fov calculation, since source inherit Quake proj matrix calculation
constexpr auto kMultiplyFactor = 0.75f;
const float fovHalfTan = std::tan(angles::DegreesToRadians(fieldOfView) / 2.f) * kMultiplyFactor;