Skip to content

Commit

Permalink
Fixing minor ambient lighting bug
Browse files Browse the repository at this point in the history
Spherical harmonics: if no ambient map assigned, use specified color (but correctly)
  • Loading branch information
JulianSchoenbaechler committed Jan 3, 2021
1 parent 3a2632d commit c799fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/spherical_harmonics.cpp
Expand Up @@ -597,7 +597,7 @@ void SphericalHarmonics::setAmbientLight(const video::SColor &ambient)
unsigned sh_h = 16;
unsigned ambr, ambg, ambb;

ambr = ambient.getBlue();
ambr = ambient.getRed();
ambg = ambient.getGreen();
ambb = ambient.getBlue();

Expand Down

0 comments on commit c799fed

Please sign in to comment.