Skip to content

Commit 093cd28

Browse files
authored
Set bloom intensity
1 parent df81594 commit 093cd28

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

game_api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ Weather API
12051205
-----------
12061206

12071207
The weather mod will constantly adjust weather effects seen by the player
1208-
(that is: cloud parameters, shadow intensity and volumetric lighting).
1208+
(that is: cloud parameters, shadow intensity, bloom and volumetric lighting).
12091209
These can be influenced using this API.
12101210

12111211
#### `weather.get = function(player)`

minetest.conf.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ default:torch 99,default:cobble 99
7272
# Helps rivers create more sound, especially on level sections.
7373
#river_source_sounds = false
7474

75-
# If enabled, the 'weather' mod will control cloud parameters, shadow intensity
76-
# and volumetric lighting.
75+
# If enabled, the 'weather' mod will control cloud parameters, shadow intensity,
76+
# bloom and volumetric lighting.
7777
# Non-functional in V6 or Singlenode mapgens.
7878
#enable_weather = true
7979

mods/weather/init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ if mg_name == "v6" or mg_name == "singlenode" then
1313
minetest.register_on_joinplayer(function(player)
1414
player:set_lighting({
1515
shadows = { intensity = 0.33 },
16+
bloom = { intensity = 0.05 },
1617
volumetric_light = { strength = 0.2 },
1718
})
1819
end)
@@ -121,6 +122,7 @@ function weather.get(player)
121122
},
122123
lighting = {
123124
shadows = { intensity = 0.7 * (1 - density) },
125+
bloom = { intensity = 0.05 },
124126
volumetric_light = { strength = 0.2 },
125127
}
126128
}

settingtypes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ engine_spawn (Use engine spawn search) bool false
7272
# Helps rivers create more sound, especially on level sections.
7373
river_source_sounds (River source node sounds) bool false
7474

75-
# If enabled, the 'weather' mod will control cloud parameters, shadow intensity
76-
# and volumetric lighting.
75+
# If enabled, the 'weather' mod will control cloud parameters, shadow intensity,
76+
# bloom and volumetric lighting.
7777
# Non-functional in V6 or Singlenode mapgens.
7878
enable_weather (Enable weather) bool true
7979

0 commit comments

Comments
 (0)