commit edac4b6

uint  ·  2026-07-29 14:00:09 +0000 UTC
parent 6f30a10
fix: use radians for fov
2 files changed,  +2, -2
+1, -1
1@@ -5,7 +5,7 @@ project(
2 		'c_std=c89',
3 		'warning_level=3',
4 	],
5-	)
6+)
7 
8 cc = meson.get_compiler('c')
9 math_dep = cc.find_library('m', required: false)
+1, -1
1@@ -10,7 +10,7 @@ void camera_init(MGCamera* cam, MGVec3 pos)
2 	cam->pos = pos;
3 	cam->yaw = 0.0f;
4 	cam->pitch = 0.0f;
5-	cam->fov = 70.0f;
6+	cam->fov = MG_AngleDeg(70.0f);
7 	cam->near = 0.1f;
8 	cam->far = 100.0f;
9 }