Skip to content

Commit

Permalink
Fix pokedex3d on specialized shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Jul 19, 2024
1 parent 5c1e291 commit e4550b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/PICA/shader_gen_glsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e4550b3

Please sign in to comment.