Fixing minor ambient lighting bug

Spherical harmonics: if no ambient map assigned, use specified color (but correctly)
This commit is contained in:
Julian Schönbächler 2021-01-03 02:07:43 +01:00
parent 3a2632dd62
commit c799fedf45

View File

@ -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();