used tanf(float) instead of tan(double)
This commit is contained in:
parent
fdceda495a
commit
4be7c2a2d0
@ -78,7 +78,7 @@ namespace hgl
|
|||||||
float znear,
|
float znear,
|
||||||
float zfar)
|
float zfar)
|
||||||
{
|
{
|
||||||
float f = 1.0f / tan( deg2rad( 0.5f * field_of_view ) );
|
float f = 1.0f / tanf( deg2rad( 0.5f * field_of_view ) );
|
||||||
|
|
||||||
return Matrix4f(
|
return Matrix4f(
|
||||||
f / aspect_ratio,
|
f / aspect_ratio,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user