mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:18:38 +02:00
Switching emissive and lightmap somewhere but not big issue
This commit is contained in:
parent
695e558851
commit
de374c0cac
1 changed files with 2 additions and 2 deletions
|
@ -213,10 +213,10 @@ void NetworkGeometry::setTextureWithNameToURL(const QString& name, const QUrl& u
|
||||||
|
|
||||||
networkMaterial->setTextureMap(model::MaterialKey::EMISSIVE_MAP, emissiveMap);
|
networkMaterial->setTextureMap(model::MaterialKey::EMISSIVE_MAP, emissiveMap);
|
||||||
} else if (material->lightmapTextureName == name) {
|
} else if (material->lightmapTextureName == name) {
|
||||||
material->emissiveTexture = textureCache->getTexture(url, LIGHTMAP_TEXTURE);
|
material->lightmapTexture = textureCache->getTexture(url, LIGHTMAP_TEXTURE);
|
||||||
|
|
||||||
auto lightmapMap = model::TextureMapPointer(new model::TextureMap());
|
auto lightmapMap = model::TextureMapPointer(new model::TextureMap());
|
||||||
lightmapMap->setTextureSource(material->emissiveTexture->_textureSource);
|
lightmapMap->setTextureSource(material->lightmapTexture->_textureSource);
|
||||||
lightmapMap->setTextureTransform(
|
lightmapMap->setTextureTransform(
|
||||||
oldTextureMaps[model::MaterialKey::LIGHTMAP_MAP]->getTextureTransform());
|
oldTextureMaps[model::MaterialKey::LIGHTMAP_MAP]->getTextureTransform());
|
||||||
glm::vec2 oldOffsetScale =
|
glm::vec2 oldOffsetScale =
|
||||||
|
|
Loading…
Reference in a new issue