diff options
author | rodri <rgl@antares-labs.eu> | 2024-05-16 09:37:08 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-05-16 09:37:08 +0000 |
commit | 8ee6eca01b653764ce62accdf6c86dc1987fea02 (patch) | |
tree | 652411fd9a657def1f38f557614cf97496c53f64 | |
parent | c46b7a3e97390bbe8803afbb70b307362f9123f0 (diff) | |
download | 3dee-8ee6eca01b653764ce62accdf6c86dc1987fea02.tar.gz 3dee-8ee6eca01b653764ce62accdf6c86dc1987fea02.tar.bz2 3dee-8ee6eca01b653764ce62accdf6c86dc1987fea02.zip |
add a triangular basis and clamp the fov to [1,180]°.
-rw-r--r-- | mdl/tribasis.obj | 11 | ||||
-rw-r--r-- | vis.c | 4 |
2 files changed, 13 insertions, 2 deletions
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 @@ -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); } |