draw: draw_distance for 3d spaces, proper positioning of skybox according to it, scenery demo on circle rasters
This commit is contained in:
@ -207,11 +207,12 @@
|
||||
"symbol": "camera",
|
||||
"header": "twn_draw.h",
|
||||
"params": [
|
||||
{ "name": "position", "type": "Vec3" },
|
||||
{ "name": "position", "type": "Vec3", "default": { "x": 0, "y": 0, "z": 0 } },
|
||||
{ "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": "zoom", "type": "float", "default": 1 }
|
||||
{ "name": "zoom", "type": "float", "default": 1 },
|
||||
{ "name": "draw_distance", "type": "float", "default": 100 }
|
||||
]
|
||||
},
|
||||
|
||||
@ -220,12 +221,13 @@
|
||||
"symbol": "camera_from_principal_axes",
|
||||
"header": "twn_draw.h",
|
||||
"params": [
|
||||
{ "name": "position", "type": "Vec3" },
|
||||
{ "name": "position", "type": "Vec3", "default": { "x": 0, "y": 0, "z": 0 } },
|
||||
{ "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": "zoom", "type": "float", "default": 1 }
|
||||
{ "name": "zoom", "type": "float", "default": 1 },
|
||||
{ "name": "draw_distance", "type": "float", "default": 100 }
|
||||
],
|
||||
"return": {
|
||||
"fields": [
|
||||
|
Reference in New Issue
Block a user