1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Various fixes

Fix binormal and tangent
Fix inconsistent sunrise/sunset timings and bright foliage at night
This commit is contained in:
Gefüllte Taubenbrust 2024-12-22 20:26:41 +01:00
parent e7c7441429
commit 91f614cbee
4 changed files with 20 additions and 18 deletions

View file

@ -182,9 +182,9 @@ void main(void)
mtsmoothstep(0.793, 0.823, f_timeofday);
} else {
adj_shadow_strength = f_shadow_strength *
mtsmoothstep(0.21, 0.26, f_timeofday) *
(1.0 - mtsmoothstep(0.743, 0.793, f_timeofday));
sunTint = mix(vec3(1.0), getDirectLightScatteringAtGround(v_LightDirection), min(1.0, 4.0 * adj_shadow_strength));
mtsmoothstep(0.21, 0.24, f_timeofday) *
(1.0 - mtsmoothstep(0.763, 0.793, f_timeofday));
sunTint = mix(vec3(1.0), getDirectLightScatteringAtGround(v_LightDirection), adj_shadow_strength / f_shadow_strength);
}
}
#endif