Handle glow maps for BGSM files

pull/3235/head
Alexei Kotov 2 weeks ago
parent 8325e100df
commit ea5e101821

@ -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…
Cancel
Save