mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 12:09:53 +00:00
Handle glow maps for BGSM files
This commit is contained in:
parent
8325e100df
commit
ea5e101821
1 changed files with 3 additions and 0 deletions
|
@ -2188,6 +2188,9 @@ namespace NifOsg
|
|||
if (!bgsm->mNormalMap.empty())
|
||||
attachExternalTexture("normalMap", bgsm->mNormalMap, wrapS, wrapT, uvSet, stateset, boundTextures);
|
||||
|
||||
if (bgsm->mGlowMapEnabled && !bgsm->mGlowMap.empty())
|
||||
attachExternalTexture("emissiveMap", bgsm->mGlowMap, wrapS, wrapT, uvSet, stateset, boundTextures);
|
||||
|
||||
if (bgsm->mTree)
|
||||
stateset->addUniform(new osg::Uniform("useTreeAnim", true));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue