Simple trivial bug...

starlike

19-09-2006 05:08:18

With some test of PLSM options... I found a bug...

MapUtil::processOneMap()
{
...

if (mGenLitBaseMap)
{
// does modify Base Map.
mMergeModulater->ModulateGrayAndRgbaInRgba (mLightMapper->getLightMap (mSun, mAmb, mDiff, mBlur),
mSplatMapper->getBaseMap (),
2);


I think this should be ModulateGrayAndRgbInRgb because base map is RGB format which doesn't have alpha channel.

Actually, current code triggers exception when mGenLitBaseMap is true.

tuan kuranes

19-09-2006 08:50:53

Good spot. Will fix that asap.