1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2025-07-20 17:30:31 +02:00

Add new textures, tweak effects, add fog and freezing of river water

This commit is contained in:
Till Affeldt
2020-04-22 00:54:27 +02:00
parent e0b8d6d835
commit 32ab2c4d23
27 changed files with 223 additions and 65 deletions

View File

@ -19,7 +19,7 @@ effects["climate_api:particles"] = {
min_pos = {x=-8, y=3, z=-8},
max_pos = {x= 8, y=6, z= 8},
exptime=6,
size=12,
size=10,
texture="weather_snow.png"
}
@ -28,12 +28,8 @@ local function generate_effects(params)
local intensity = params.humidity / avg_humidity
local override = {}
override["climate_api:sound"] = {
gain = math.min(intensity, 1.2)
}
override["climate_api:particles"] = {
amount = 8 * math.min(intensity, 1.5),
amount = 16 * math.min(intensity, 1.5),
falling_speed = 1 / math.min(intensity, 1.3)
}