1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-28 12:46:02 +02:00

Set volumetric lighting strength

This commit is contained in:
grorp
2024-10-01 16:08:15 +02:00
committed by Lars Müller
parent b23c44d980
commit df8159436c
4 changed files with 11 additions and 5 deletions

View File

@ -11,7 +11,10 @@ local mg_name = minetest.get_mapgen_setting("mg_name")
if mg_name == "v6" or mg_name == "singlenode" then
-- set a default shadow intensity for mgv6 and singlenode
minetest.register_on_joinplayer(function(player)
player:set_lighting({ shadows = { intensity = 0.33 } })
player:set_lighting({
shadows = { intensity = 0.33 },
volumetric_light = { strength = 0.2 },
})
end)
return
@ -117,7 +120,8 @@ function weather.get(player)
speed = {x = n_speedx * 4, z = n_speedz * 4},
},
lighting = {
shadows = { intensity = 0.7 * (1 - density) }
shadows = { intensity = 0.7 * (1 - density) },
volumetric_light = { strength = 0.2 },
}
}
end