draw: draw_distance for 3d spaces, proper positioning of skybox according to it, scenery demo on circle rasters

This commit is contained in:
veclavtalica
2025-02-26 15:53:59 +03:00
parent 23fbd45564
commit 8c0f43ec34
9 changed files with 123 additions and 80 deletions

View File

@ -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": [