From 8ee6eca01b653764ce62accdf6c86dc1987fea02 Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 16 May 2024 09:37:08 +0000 Subject: =?UTF-8?q?add=20a=20triangular=20basis=20and=20clamp=20the=20fov?= =?UTF-8?q?=20to=20[1,180]=C2=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mdl/tribasis.obj | 11 +++++++++++ vis.c | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 mdl/tribasis.obj diff --git a/mdl/tribasis.obj b/mdl/tribasis.obj new file mode 100644 index 0000000..3c82bff --- /dev/null +++ b/mdl/tribasis.obj @@ -0,0 +1,11 @@ +mtllib basis.mtl +v 0 0 0 +v 1 0 0 +v 0 1 0 +v 0 0 1 +usemtl x +f 1 2 3 +usemtl y +f 1 3 4 +usemtl z +f 1 4 2 diff --git a/vis.c b/vis.c index 5796b32..0ec12f2 100644 --- a/vis.c +++ b/vis.c @@ -429,14 +429,14 @@ getshader(char *name) void zoomin(void) { - maincam->fov = fclamp(maincam->fov - 1*DEG, 1*DEG, 359*DEG); + maincam->fov = fclamp(maincam->fov - 1*DEG, 1*DEG, 180*DEG); reloadcamera(maincam); } void zoomout(void) { - maincam->fov = fclamp(maincam->fov + 1*DEG, 1*DEG, 359*DEG); + maincam->fov = fclamp(maincam->fov + 1*DEG, 1*DEG, 180*DEG); reloadcamera(maincam); } -- cgit v1.2.3