mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add dynamic exposure correction (#12959)
* Add uniform for frame delta time * Adjust exposure in logarithmic (EV) space * Add network support and LUA API * Add testing mod
This commit is contained in:
parent
2715cc8bf6
commit
6d45c243f8
29 changed files with 567 additions and 71 deletions
|
@ -210,20 +210,6 @@ minetest.register_chatcommand("dump_item", {
|
|||
end,
|
||||
})
|
||||
|
||||
-- shadow control
|
||||
minetest.register_on_joinplayer(function (player)
|
||||
player:set_lighting({shadows={intensity = 0.33}})
|
||||
end)
|
||||
|
||||
core.register_chatcommand("set_shadow", {
|
||||
params = "<shadow_intensity>",
|
||||
description = "Set shadow parameters of current player.",
|
||||
func = function(player_name, param)
|
||||
local shadow_intensity = tonumber(param)
|
||||
minetest.get_player_by_name(player_name):set_lighting({shadows = { intensity = shadow_intensity} })
|
||||
end
|
||||
})
|
||||
|
||||
core.register_chatcommand("set_saturation", {
|
||||
params = "<saturation>",
|
||||
description = "Set the saturation for current player.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue