From e4550b3e4f14c487678a9d3a05d1e05bd7f23826 Mon Sep 17 00:00:00 2001 From: offtkp Date: Fri, 19 Jul 2024 15:55:02 +0300 Subject: [PATCH] Fix pokedex3d on specialized shaders --- src/core/PICA/shader_gen_glsl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/PICA/shader_gen_glsl.cpp b/src/core/PICA/shader_gen_glsl.cpp index c7195b254..0a9c1a5ac 100644 --- a/src/core/PICA/shader_gen_glsl.cpp +++ b/src/core/PICA/shader_gen_glsl.cpp @@ -560,8 +560,8 @@ void FragmentGenerator::compileLights(std::string& shader, const PICA::FragmentC shader += "specular_sum.rgb += light_factor * (specular0 + specular1);\n"; } - shader += "diffuse_sum.rgb += light_factor * lightSources[" + std::to_string(lightID) + "].ambient + lightSources[" + - std::to_string(lightID) + "].diffuse * NdotL;\n"; + shader += "diffuse_sum.rgb += light_factor * (lightSources[" + std::to_string(lightID) + "].ambient + lightSources[" + + std::to_string(lightID) + "].diffuse * NdotL);\n"; } if (config.lighting.enablePrimaryAlpha || config.lighting.enableSecondaryAlpha) {