Add custom sun/moon fog tint

This commit is contained in:
Wuzzy 2024-06-01 08:57:07 +02:00
parent 24b1abdfdd
commit ed6733ae69

View File

@ -11,6 +11,9 @@ local DEFAULT_CLOUDS = {
thickness = 16,
speed = {x=0, z=-2},
}
local DEFAULT_FOG_SUN_TINT = "#ff6300"
local DEFAULT_FOG_MOON_TINT = "#7f99ff"
local function make_clouds(params)
local clouds = table.copy(DEFAULT_CLOUDS)
for k,v in pairs(params) do
@ -75,7 +78,9 @@ register_sky("condensed", {
dawn_horizon = "#bac1f0",
night_sky = "#006aff",
night_horizon = "#4090ff",
fog_tint_type = "default",
fog_tint_type = "custom",
fog_sun_tint = DEFAULT_FOG_SUN_TINT,
fog_moon_tint = DEFAULT_FOG_MOON_TINT,
},
clouds = true,
},
@ -101,7 +106,9 @@ register_sky("saturated", {
dawn_horizon = "#58a9df",
night_sky = "#045faf",
night_horizon = "#3889af",
fog_tint_type = "default",
fog_tint_type = "custom",
fog_sun_tint = DEFAULT_FOG_SUN_TINT,
fog_moon_tint = DEFAULT_FOG_MOON_TINT,
},
clouds = true,
},
@ -127,7 +134,9 @@ register_sky("oakish", {
dawn_horizon = "#003f45",
night_sky = "#00364b",
night_horizon = "#005d6c",
fog_tint_type = "default",
fog_tint_type = "custom",
fog_sun_tint = DEFAULT_FOG_SUN_TINT,
fog_moon_tint = DEFAULT_FOG_MOON_TINT,
},
clouds = true,
},
@ -155,7 +164,9 @@ register_sky("oakish_soft", {
dawn_horizon = "#003f45",
night_sky = "#00364b",
night_horizon = "#005d6c",
fog_tint_type = "default",
fog_tint_type = "custom",
fog_sun_tint = DEFAULT_FOG_SUN_TINT,
fog_moon_tint = DEFAULT_FOG_MOON_TINT,
},
clouds = true,
},
@ -185,7 +196,9 @@ register_sky("birchish", {
dawn_horizon = "#abc3d5",
night_sky = "#588bdf",
night_horizon = "#8ba3b5",
fog_tint_type = "default",
fog_tint_type = "custom",
fog_sun_tint = DEFAULT_FOG_SUN_TINT,
fog_moon_tint = DEFAULT_FOG_MOON_TINT,
},
clouds = true,
},
@ -211,7 +224,9 @@ register_sky("swamp", {
dawn_horizon = "#24ea93",
night_sky = "#00ffc9",
night_horizon = "#1bd290",
fog_tint_type = "default",
fog_tint_type = "custom",
fog_sun_tint = DEFAULT_FOG_SUN_TINT,
fog_moon_tint = DEFAULT_FOG_MOON_TINT,
},
clouds = true,
},
@ -239,7 +254,9 @@ register_sky("dry_swamp", {
dawn_horizon = "#8aad91",
night_sky = "#005146",
night_horizon = "#546961",
fog_tint_type = "default",
fog_tint_type = "custom",
fog_sun_tint = DEFAULT_FOG_SUN_TINT,
fog_moon_tint = DEFAULT_FOG_MOON_TINT,
},
clouds = true,
},
@ -267,7 +284,9 @@ register_sky("savannic", {
dawn_horizon = "#db3900",
night_sky = "#db3900",
night_horizon = "#b70000",
fog_tint_type = "default",
fog_tint_type = "custom",
fog_sun_tint = DEFAULT_FOG_SUN_TINT,
fog_moon_tint = DEFAULT_FOG_MOON_TINT,
},
clouds = true,
},
@ -295,7 +314,9 @@ register_sky("hot_sky", {
dawn_horizon = "#4fd0df",
night_sky = "#3fc0cf",
night_horizon = "#1fa0af",
fog_tint_type = "default",
fog_tint_type = "custom",
fog_sun_tint = DEFAULT_FOG_SUN_TINT,
fog_moon_tint = DEFAULT_FOG_MOON_TINT,
},
clouds = true,
},
@ -323,7 +344,9 @@ register_sky("drylandic", {
dawn_horizon = "#edd2c6",
night_sky = "#db3900",
night_horizon = "#b70000",
fog_tint_type = "default",
fog_tint_type = "custom",
fog_sun_tint = DEFAULT_FOG_SUN_TINT,
fog_moon_tint = DEFAULT_FOG_MOON_TINT,
},
clouds = true,
},