mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Update loaded models with texture transparency
This commit is contained in:
parent
ee1fb698a4
commit
22d41c833f
1 changed files with 6 additions and 0 deletions
|
@ -145,7 +145,13 @@ bool NetworkGeometry::isLoadedWithTextures() const {
|
|||
(material->lightmapTexture && !material->lightmapTexture->isLoaded())) {
|
||||
return false;
|
||||
}
|
||||
if (material->albedoTexture) {
|
||||
// Reset the materialKey transparentTexture key only, as it is albedoTexture-dependent
|
||||
const auto& usage = material->albedoTexture->getGPUTexture()->getUsage();
|
||||
material->_material->setTransparentTexture(usage.isAlpha() && !usage.isAlphaMask());
|
||||
}
|
||||
}
|
||||
|
||||
_isLoadedWithTextures = true;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue