1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Minor changes

This commit is contained in:
Gefüllte Taubenbrust 2024-08-18 16:11:30 +02:00
parent e6752008e0
commit e5afca89f7
8 changed files with 50 additions and 2 deletions

View file

@ -8,6 +8,8 @@
uniform sampler2D baseTexture;
uniform vec2 texelSize0;
varying vec3 sunTint;
uniform vec3 dayLight;
uniform lowp vec4 fogColor;
uniform float fogDistance;
@ -485,7 +487,7 @@ void main(void)
// calculate fragment color from components:
col.rgb =
adjusted_night_ratio * col.rgb + // artificial light
(1.0 - adjusted_night_ratio) * ( // natural light
sunTint * (1.0 - adjusted_night_ratio) * ( // natural light
col.rgb * (1.0 - shadow_int * (1.0 - shadow_color)) + // filtered texture color
dayLight * shadow_color * shadow_int); // reflected filtered sunlight/moonlight
}