X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmatrix.cpp;fp=source%2Fmatrix.cpp;h=a4b60dc604a17fb5b95bbd7a5262628b26259408;hp=d8f018aaf4835814c4736ac389f8e7426dd6279d;hb=955e7cada42e099016879332e71863e46075d72b;hpb=1d59ea8601436164f8bfc114da3941cb0871e87b diff --git a/source/matrix.cpp b/source/matrix.cpp index d8f018aa..a4b60dc6 100644 --- a/source/matrix.cpp +++ b/source/matrix.cpp @@ -256,7 +256,7 @@ Matrix Matrix::frustum_centered(double w, double h, double n, double f) Matrix Matrix::perspective(double h, double a, double n, double f) { - double hh = tan(h)*n; + double hh = tan(h/2)*n; return frustum(-hh*a, hh*a, -hh, hh, n, f); }