From 14a61f789179ee31886dfa2e116acbd653965d8e Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 11 Dec 2025 23:54:23 +0300 Subject: [PATCH] update main shader --- res/shaders/main.glslf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/shaders/main.glslf b/res/shaders/main.glslf index 115cb9274..3a12c406e 100644 --- a/res/shaders/main.glslf +++ b/res/shaders/main.glslf @@ -30,7 +30,7 @@ void main() { texColor.rgb = u_debugNormals ? (a_normal * 0.5 + 0.5) : vec3(1.0); f_color = texColor; - f_color.rgb *= min(vec3(1.0), a_torchLight.rgb + a_skyLight); + f_color.rgb *= max(a_torchLight.rgb, a_skyLight); #ifndef ADVANCED_RENDER vec3 fogColor = texture(u_skybox, a_dir).rgb;