added check, removed deprecated code

This commit is contained in:
2024-12-02 10:57:47 +03:00
parent 17b2e07869
commit c2c0b29dc9
4 changed files with 27 additions and 49 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
#pragma once
#include "omath/Vector3.hpp"
#include "omath/Mat.hpp"
#include "omath/Angle.hpp"
namespace omath::opengl
{
+1 -1
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},