used tanf(float) instead of tan(double)

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-10-31 16:12:40 +08:00
parent fdceda495a
commit 4be7c2a2d0

View File

@ -78,7 +78,7 @@ namespace hgl
float znear,
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(
f / aspect_ratio,