fixed some pconf/vpconf bugs

This commit is contained in:
Zeno Rogue committed 2020-11-08 12:09:42 +01:00
1 parent 32a61367b0
commit d7351d169a
3 files changed
+8 -4

No files matched your search

+1 -1
View File
@@ -305,7 +305,7 @@ transmatrix zforward_push(ld z) {
}
EX void zoom_or_fov(ld t) {
if(in_perspective()) {
if(in_perspective_v()) {
auto tanfov = tan(vid.fov * degree / 2);
tanfov *= t;
vid.fov = atan(tanfov) * 2 / degree;