From cd213b75f74bb31a0f89a6cb8d0090f4991790b8 Mon Sep 17 00:00:00 2001 From: Wbjitscool Date: Tue, 14 May 2024 07:17:04 +0000 Subject: [PATCH] Update mods/ENVIRONMENT/mcl_weather/skycolor.lua adds in sunray shader support for Minetest version 5.9.0 --- mods/ENVIRONMENT/mcl_weather/skycolor.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/mods/ENVIRONMENT/mcl_weather/skycolor.lua b/mods/ENVIRONMENT/mcl_weather/skycolor.lua index 1e6e3198b..69b9f5c97 100644 --- a/mods/ENVIRONMENT/mcl_weather/skycolor.lua +++ b/mods/ENVIRONMENT/mcl_weather/skycolor.lua @@ -229,11 +229,22 @@ end) local function initsky(player) if player.set_lighting then - player:set_lighting({ shadows = { intensity = tonumber(minetest.settings:get("mcl_default_shadow_intensity") or 0.33) } }) + player:set_lighting({ + shadows = { intensity = 0.33 }, + volumetric_light = { strength = 0.45 }, + exposure = { + luminance_min = -3.5, + luminance_max = -2.5, + exposure_correction = 0.35, + speed_dark_bright = 1500, + speed_bright_dark = 700, + }, + saturation = 1.1, + }) end if (skycolor.active) then - skycolor.force_update = true + mcl_weather.skycolor.force_update = true end player:set_clouds(mcl_worlds:get_cloud_parameters() or {height=mcl_worlds.layer_to_y(127), speed={x=-2, z=0}, thickness=4, color="#FFF0FEF"})