Daniele Bartolini %!s(int64=9) %!d(string=hai) anos
pai
achega
08686a1923
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/math/matrix4x4.h

+ 1 - 1
src/core/math/matrix4x4.h

@@ -264,7 +264,7 @@ inline Matrix4x4 operator*(Matrix4x4 a, const Matrix4x4& b)
 /// Sets the matrix @a m to perspective.
 inline void perspective(Matrix4x4& m, f32 fovy, f32 aspect, f32 near, f32 far)
 {
-	const f32 height = 1.0f / tanf(frad(fovy) * 0.5f);
+	const f32 height = 1.0f / tanf(fovy * 0.5f);
 	const f32 width = height * 1.0f / aspect;
 	const f32 aa = far / (far - near);
 	const f32 bb = -near * aa;