1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2025-07-25 11:50:21 +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

@ -43,6 +43,11 @@ effects["climate_api:particles"] = {
}
effects["climate_api:skybox"] = {
sky_data = {
type = "plain",
base_color = "#f7e4bfff",
clouds = true,
},
cloud_data = {
density = 1,
color = "#f7e4bfc0",
@ -53,12 +58,13 @@ effects["climate_api:skybox"] = {
}
local function generate_effects(params)
local override = table.copy(effects)
local override = {}
override["climate_api:skybox"] = {
cloud_data= {
height = params.player:get_pos().y
height = params.player:get_pos().y - 20
}
}
override = climate_api.utility.merge_tables(effects, override)
if params.daylight < 15 then
local result = {}
result["climate_api:skybox"] = override["climate_api:skybox"]