orthographic projection for fov=0, rework of order and defaults for 3d camera api
This commit is contained in:
@ -179,9 +179,9 @@
|
||||
"header": "twn_draw.h",
|
||||
"params": [
|
||||
{ "name": "position", "type": "Vec3" },
|
||||
{ "name": "fov", "type": "float" },
|
||||
{ "name": "up", "type": "Vec3" },
|
||||
{ "name": "direction", "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 }
|
||||
]
|
||||
},
|
||||
|
||||
@ -191,10 +191,10 @@
|
||||
"header": "twn_draw.h",
|
||||
"params": [
|
||||
{ "name": "position", "type": "Vec3" },
|
||||
{ "name": "fov", "type": "float" },
|
||||
{ "name": "roll", "type": "float" },
|
||||
{ "name": "pitch", "type": "float" },
|
||||
{ "name": "yaw", "type": "float" }
|
||||
{ "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 }
|
||||
],
|
||||
"return": {
|
||||
"fields": [
|
||||
|
Reference in New Issue
Block a user