Fixing minor ambient lighting bug
Spherical harmonics: if no ambient map assigned, use specified color (but correctly)
This commit is contained in:
parent
3a2632dd62
commit
c799fedf45
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user