mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 11:53:46 +01:00
Send shadows to client if server supports it
This commit is contained in:
parent
442fefebf2
commit
7be8ab2c1c
@ -276,6 +276,11 @@ minetest.register_globalstep(function(dtime)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
local function initsky(player)
|
local function initsky(player)
|
||||||
|
|
||||||
|
if player.set_lighting then
|
||||||
|
player:set_lighting({ shadows = { intensity = tonumber(minetest.settings:get("mcl_default_shadow_intensity") or 0.33) } })
|
||||||
|
end
|
||||||
|
|
||||||
if (mcl_weather.skycolor.active) then
|
if (mcl_weather.skycolor.active) then
|
||||||
mcl_weather.skycolor.force_update = true
|
mcl_weather.skycolor.force_update = true
|
||||||
end
|
end
|
||||||
|
@ -115,6 +115,9 @@ animated_chests (Animated chests) bool true
|
|||||||
# The maximum number of boss bars to simultaniously display on the screen
|
# The maximum number of boss bars to simultaniously display on the screen
|
||||||
max_bossbars (Maximum Boss bars) int 5
|
max_bossbars (Maximum Boss bars) int 5
|
||||||
|
|
||||||
|
# Default intensity of shadows (default: 0.33)
|
||||||
|
mcl_default_shadow_intensity (Default shadow intensity) float 0.33 0.0 1.0
|
||||||
|
|
||||||
[Experimental]
|
[Experimental]
|
||||||
# Whether ice is translucent. If disabled, ice is fully opaque.
|
# Whether ice is translucent. If disabled, ice is fully opaque.
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user