1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2025-07-22 10:20:25 +02:00

Tweak fog effect, add puddle variants, imrove frost HUD

This commit is contained in:
Till Affeldt
2020-04-24 01:36:58 +02:00
parent 32ab2c4d23
commit 677382c142
50 changed files with 174 additions and 69 deletions

View File

@ -7,9 +7,9 @@ local function generate_effects(params)
local override = {}
local wind = climate_api.environment.get_wind()
local skybox = {priority = 0}
local skybox = {priority = 10}
skybox.cloud_data = {
density = climate_api.utility.rangelim(params.humidity / 100, 0.25, 0.98),
density = climate_api.utility.rangelim(params.humidity / 100, 0.25, 0.75),
speed = vector.multiply(wind, CLOUD_SPEED),
thickness = climate_api.utility.rangelim(params.base_humidity * 0.2, 1, 18)
}
@ -29,7 +29,7 @@ local function generate_effects(params)
}
end
--override["climate_api:skybox"] = skybox
override["climate_api:skybox"] = skybox
local movement = params.player:get_player_velocity()
local movement_direction