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:
parent
df8159436c
commit
093cd28a27
|
@ -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)`
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 },
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user