mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Allow resetting celestial vault elements by leaving its arguments empty (#11922)
This commit is contained in:
parent
f66ed2c27f
commit
37d80784dd
7 changed files with 124 additions and 120 deletions
|
@ -6794,12 +6794,15 @@ object you are working with still exists.
|
|||
* `set_sky(sky_parameters)`
|
||||
* The presence of the function `set_sun`, `set_moon` or `set_stars` indicates
|
||||
whether `set_sky` accepts this format. Check the legacy format otherwise.
|
||||
* Passing no arguments resets the sky to its default values.
|
||||
* `sky_parameters` is a table with the following optional fields:
|
||||
* `base_color`: ColorSpec, changes fog in "skybox" and "plain".
|
||||
(default: `#ffffff`)
|
||||
* `type`: Available types:
|
||||
* `"regular"`: Uses 0 textures, `base_color` ignored
|
||||
* `"skybox"`: Uses 6 textures, `base_color` used as fog.
|
||||
* `"plain"`: Uses 0 textures, `base_color` used as both fog and sky.
|
||||
(default: `"regular"`)
|
||||
* `textures`: A table containing up to six textures in the following
|
||||
order: Y+ (top), Y- (bottom), X- (west), X+ (east), Z+ (north), Z- (south).
|
||||
* `clouds`: Boolean for whether clouds appear. (default: `true`)
|
||||
|
@ -6828,9 +6831,9 @@ object you are working with still exists.
|
|||
* `indoors`: ColorSpec, for when you're either indoors or underground.
|
||||
(default: `#646464`)
|
||||
* `fog_sun_tint`: ColorSpec, changes the fog tinting for the sun
|
||||
at sunrise and sunset.
|
||||
at sunrise and sunset. (default: `#f47d1d`)
|
||||
* `fog_moon_tint`: ColorSpec, changes the fog tinting for the moon
|
||||
at sunrise and sunset.
|
||||
at sunrise and sunset. (default: `#7f99cc`)
|
||||
* `fog_tint_type`: string, changes which mode the directional fog
|
||||
abides by, `"custom"` uses `sun_tint` and `moon_tint`, while
|
||||
`"default"` uses the classic Minetest sun and moon tinting.
|
||||
|
@ -6848,6 +6851,7 @@ object you are working with still exists.
|
|||
* `get_sky_color()`: returns a table with the `sky_color` parameters as in
|
||||
`set_sky`.
|
||||
* `set_sun(sun_parameters)`:
|
||||
* Passing no arguments resets the sun to its default values.
|
||||
* `sun_parameters` is a table with the following optional fields:
|
||||
* `visible`: Boolean for whether the sun is visible.
|
||||
(default: `true`)
|
||||
|
@ -6863,6 +6867,7 @@ object you are working with still exists.
|
|||
* `get_sun()`: returns a table with the current sun parameters as in
|
||||
`set_sun`.
|
||||
* `set_moon(moon_parameters)`:
|
||||
* Passing no arguments resets the moon to its default values.
|
||||
* `moon_parameters` is a table with the following optional fields:
|
||||
* `visible`: Boolean for whether the moon is visible.
|
||||
(default: `true`)
|
||||
|
@ -6874,6 +6879,7 @@ object you are working with still exists.
|
|||
* `get_moon()`: returns a table with the current moon parameters as in
|
||||
`set_moon`.
|
||||
* `set_stars(star_parameters)`:
|
||||
* Passing no arguments resets stars to their default values.
|
||||
* `star_parameters` is a table with the following optional fields:
|
||||
* `visible`: Boolean for whether the stars are visible.
|
||||
(default: `true`)
|
||||
|
@ -6887,6 +6893,7 @@ object you are working with still exists.
|
|||
* `get_stars()`: returns a table with the current stars parameters as in
|
||||
`set_stars`.
|
||||
* `set_clouds(cloud_parameters)`: set cloud parameters
|
||||
* Passing no arguments resets clouds to their default values.
|
||||
* `cloud_parameters` is a table with the following optional fields:
|
||||
* `density`: from `0` (no clouds) to `1` (full clouds) (default `0.4`)
|
||||
* `color`: basic cloud color with alpha channel, ColorSpec
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue