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

Implement light correction for HUD, create new artwork

This commit is contained in:
Till Affeldt
2020-04-24 19:52:03 +02:00
parent 677382c142
commit 084ee8c9f5
9 changed files with 28 additions and 13 deletions

View File

@ -18,7 +18,7 @@ effects["climate_api:skybox"] = {
},
cloud_data = {
density = 1,
color = "#ffffff00",
color = "#ffffff80",
thickness = 40,
speed = {x=0,y=0,z=0}
},

View File

@ -14,7 +14,8 @@ local effects = {}
effects["climate_api:hud_overlay"] = {
file = "weather_hud_fog.png^[opacity:100",
z_index = -200
z_index = -200,
color_correction = true
}
effects["climate_api:skybox"] = {

View File

@ -20,7 +20,8 @@ local effects = {}
effects["climate_api:hud_overlay"] = {
file = "weather_hud_sand.png",
z_index = -100
z_index = -100,
color_correction = true
}
effects["regional_weather:damage"] = {
@ -45,7 +46,6 @@ effects["climate_api:particles"] = {
effects["climate_api:skybox"] = {
sky_data = {
type = "plain",
base_color = "#f7e4bfff",
clouds = true,
},
cloud_data = {
@ -59,8 +59,13 @@ effects["climate_api:skybox"] = {
local function generate_effects(params)
local override = {}
local light = math.max(params.light / 15, 0.2)
local color = {r = 247 * light, g = 228 * light, b = 191 * light, a = 256}
override["climate_api:skybox"] = {
cloud_data= {
sky_data = {
base_color = color
},
cloud_data = {
height = params.player:get_pos().y - 20
}
}

View File

@ -12,7 +12,8 @@ local effects = {}
effects["climate_api:hud_overlay"] = {
file = "weather_hud_frost.png",
z_index = -100
z_index = -100,
color_correction = true
}
effects["climate_api:particles"] = {