mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 07:05:40 +12:00
Fix pokedex3d on specialized shaders
This commit is contained in:
parent
5c1e2912a3
commit
e4550b3e4f
1 changed files with 2 additions and 2 deletions
|
@ -560,8 +560,8 @@ void FragmentGenerator::compileLights(std::string& shader, const PICA::FragmentC
|
||||||
shader += "specular_sum.rgb += light_factor * (specular0 + specular1);\n";
|
shader += "specular_sum.rgb += light_factor * (specular0 + specular1);\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
shader += "diffuse_sum.rgb += light_factor * lightSources[" + std::to_string(lightID) + "].ambient + lightSources[" +
|
shader += "diffuse_sum.rgb += light_factor * (lightSources[" + std::to_string(lightID) + "].ambient + lightSources[" +
|
||||||
std::to_string(lightID) + "].diffuse * NdotL;\n";
|
std::to_string(lightID) + "].diffuse * NdotL);\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.lighting.enablePrimaryAlpha || config.lighting.enableSecondaryAlpha) {
|
if (config.lighting.enablePrimaryAlpha || config.lighting.enableSecondaryAlpha) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue