Skip to content

Commit

Permalink
Set bloom intensity
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp authored Oct 16, 2024
1 parent df81594 commit 093cd28
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion game_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
Expand Down
4 changes: 2 additions & 2 deletions minetest.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions mods/weather/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -121,6 +122,7 @@ function weather.get(player)
},
lighting = {
shadows = { intensity = 0.7 * (1 - density) },
bloom = { intensity = 0.05 },
volumetric_light = { strength = 0.2 },
}
}
Expand Down
4 changes: 2 additions & 2 deletions settingtypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 093cd28

Please sign in to comment.