Daniele Bartolini 9 年之前
父節點
當前提交
08686a1923
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.
 /// Sets the matrix @a m to perspective.
 inline void perspective(Matrix4x4& m, f32 fovy, f32 aspect, f32 near, f32 far)
 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 width = height * 1.0f / aspect;
 	const f32 aa = far / (far - near);
 	const f32 aa = far / (far - near);
 	const f32 bb = -near * aa;
 	const f32 bb = -near * aa;