Set bloom intensity

This commit is contained in:
grorp 2024-10-16 14:12:25 +02:00 committed by GitHub
parent df8159436c
commit 093cd28a27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 5 deletions

@ -1205,7 +1205,7 @@ Weather API
----------- -----------
The weather mod will constantly adjust weather effects seen by the player The weather mod will constantly adjust weather effects seen by the player
(that is: cloud parameters, shadow intensity and volumetric lighting). (that is: cloud parameters, shadow intensity, bloom and volumetric lighting).
These can be influenced using this API. These can be influenced using this API.
#### `weather.get = function(player)` #### `weather.get = function(player)`

@ -72,8 +72,8 @@ default:torch 99,default:cobble 99
# Helps rivers create more sound, especially on level sections. # Helps rivers create more sound, especially on level sections.
#river_source_sounds = false #river_source_sounds = false
# If enabled, the 'weather' mod will control cloud parameters, shadow intensity # If enabled, the 'weather' mod will control cloud parameters, shadow intensity,
# and volumetric lighting. # bloom and volumetric lighting.
# Non-functional in V6 or Singlenode mapgens. # Non-functional in V6 or Singlenode mapgens.
#enable_weather = true #enable_weather = true

@ -13,6 +13,7 @@ if mg_name == "v6" or mg_name == "singlenode" then
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
player:set_lighting({ player:set_lighting({
shadows = { intensity = 0.33 }, shadows = { intensity = 0.33 },
bloom = { intensity = 0.05 },
volumetric_light = { strength = 0.2 }, volumetric_light = { strength = 0.2 },
}) })
end) end)
@ -121,6 +122,7 @@ function weather.get(player)
}, },
lighting = { lighting = {
shadows = { intensity = 0.7 * (1 - density) }, shadows = { intensity = 0.7 * (1 - density) },
bloom = { intensity = 0.05 },
volumetric_light = { strength = 0.2 }, volumetric_light = { strength = 0.2 },
} }
} }

@ -72,8 +72,8 @@ engine_spawn (Use engine spawn search) bool false
# Helps rivers create more sound, especially on level sections. # Helps rivers create more sound, especially on level sections.
river_source_sounds (River source node sounds) bool false river_source_sounds (River source node sounds) bool false
# If enabled, the 'weather' mod will control cloud parameters, shadow intensity # If enabled, the 'weather' mod will control cloud parameters, shadow intensity,
# and volumetric lighting. # bloom and volumetric lighting.
# Non-functional in V6 or Singlenode mapgens. # Non-functional in V6 or Singlenode mapgens.
enable_weather (Enable weather) bool true enable_weather (Enable weather) bool true