added check, removed deprecated code

This commit is contained in:
2024-12-02 10:57:47 +03:00
parent 04a5535ade
commit 9c0285e353
4 changed files with 27 additions and 49 deletions

View File

@@ -4,7 +4,7 @@
#pragma once
#include "omath/Vector3.hpp"
#include "omath/Mat.hpp"
#include "omath/Angle.hpp"
namespace omath::opengl
{

View File

@@ -55,7 +55,7 @@ namespace omath::source
{
constexpr auto kMultiplyFactor = Type(0.75);
const float fovHalfTan = std::tan(angles::DegreesToRadians(fieldOfView) / 2) * kMultiplyFactor;
const Type fovHalfTan = std::tan(angles::DegreesToRadians(fieldOfView) / 2) * kMultiplyFactor;
return {
{-static_cast<Type>(1) / (aspectRatio * fovHalfTan), 0, 0, 0},