add zoom option to camera to work around the orthographic camera

This commit is contained in:
veclavtalica
2025-01-27 03:25:14 +03:00
parent 791ab628ca
commit 6a87119c70
5 changed files with 24 additions and 10 deletions

View File

@ -181,7 +181,8 @@
{ "name": "position", "type": "Vec3" },
{ "name": "direction", "type": "Vec3", "default": { "x": 0, "y": 0, "z": -1 } },
{ "name": "up", "type": "Vec3", "default": { "x": 0, "y": 1, "z": 0 } },
{ "name": "fov", "type": "float", "default": 1.57079632679 }
{ "name": "fov", "type": "float", "default": 1.57079632679 },
{ "name": "zoom", "type": "float", "default": 1 }
]
},
@ -194,7 +195,8 @@
{ "name": "roll", "type": "float", "default": 0 },
{ "name": "pitch", "type": "float", "default": 0 },
{ "name": "yaw", "type": "float", "default": 0 },
{ "name": "fov", "type": "float", "default": 1.57079632679 }
{ "name": "fov", "type": "float", "default": 1.57079632679 },
{ "name": "zoom", "type": "float", "default": 1 }
],
"return": {
"fields": [