From 72a01d3432204128442b2198d3f595bb84f011bb Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Wed, 22 Aug 2012 18:22:06 +0100 Subject: [PATCH] Experiment to do --- glm/gtc/matrix_transform.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glm/gtc/matrix_transform.inl b/glm/gtc/matrix_transform.inl index f2a1c80c..85a13aaa 100644 --- a/glm/gtc/matrix_transform.inl +++ b/glm/gtc/matrix_transform.inl @@ -242,7 +242,7 @@ namespace glm Result[3][2] = - (valType(2) * zFar * zNear) / (zFar - zNear); return Result; } - + template GLM_FUNC_QUALIFIER detail::tmat4x4 perspectiveFov ( @@ -255,7 +255,7 @@ namespace glm { valType rad = glm::radians(fov); valType h = glm::cos(valType(0.5) * rad) / glm::sin(valType(0.5) * rad); - valType w = h * height / width; + valType w = h * height / width; ///todo max(width , Height) / min(width , Height)? detail::tmat4x4 Result(valType(0)); Result[0][0] = w;