1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-15 22:40:19 +01:00

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

View File

@ -1205,7 +1205,7 @@ Weather API
-----------
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.
#### `weather.get = function(player)`

View File

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

View File

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

View File

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