Skip to content

Commit c8dddd6

Browse files
authored
fix setting emissive map (#723)
Signed-off-by: Ian Chen <[email protected]>
1 parent 5c9a665 commit c8dddd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ogre2/src/Ogre2Material.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -673,11 +673,11 @@ void Ogre2Material::SetEmissiveMap(const std::string &_name,
673673
this->dataPtr->emissiveMapData = _img;
674674
if (_img == nullptr)
675675
{
676-
this->SetTextureMapImpl(this->metalnessMapName, Ogre::PBSM_EMISSIVE);
676+
this->SetTextureMapImpl(this->emissiveMapName, Ogre::PBSM_EMISSIVE);
677677
}
678678
else
679679
{
680-
this->SetTextureMapDataImpl(this->metalnessMapName,
680+
this->SetTextureMapDataImpl(this->emissiveMapName,
681681
_img, Ogre::PBSM_EMISSIVE);
682682
}
683683
}

0 commit comments

Comments
 (0)