mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Set sky API: Add bool for clouds in front of custom skybox
Default true. Add 'm_clouds_enabled' bool to sky.h, set from new bool in 'set sky' API. Make 'getCloudsVisible()' depend on 'm_clouds_enabled' instead of 'm_visible' (whether normal sky is visible).
This commit is contained in:
@@ -283,10 +283,10 @@ private:
|
||||
// hud_get_hotbar_selected_image(self)
|
||||
static int l_hud_get_hotbar_selected_image(lua_State *L);
|
||||
|
||||
// set_sky(self, type, list)
|
||||
// set_sky(self, bgcolor, type, list, clouds = true)
|
||||
static int l_set_sky(lua_State *L);
|
||||
|
||||
// get_sky(self, type, list)
|
||||
// get_sky(self)
|
||||
static int l_get_sky(lua_State *L);
|
||||
|
||||
// set_clouds(self, {density=, color=, ambient=, height=, thickness=, speed=})
|
||||
|
Reference in New Issue
Block a user