mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-07 15:39:51 +02:00
Material resources: support relative path for emissiveMap
This commit is contained in:
parent
7f285c5f90
commit
5e22202355
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ std::pair<std::string, std::shared_ptr<NetworkMaterial>> NetworkMaterialResource
|
||||||
} else if (key == "emissiveMap") {
|
} else if (key == "emissiveMap") {
|
||||||
auto value = materialJSON.value(key);
|
auto value = materialJSON.value(key);
|
||||||
if (value.isString()) {
|
if (value.isString()) {
|
||||||
material->setEmissiveMap(value.toString());
|
material->setEmissiveMap(baseUrl.resolved(value.toString()));
|
||||||
}
|
}
|
||||||
} else if (key == "albedoMap") {
|
} else if (key == "albedoMap") {
|
||||||
auto value = materialJSON.value(key);
|
auto value = materialJSON.value(key);
|
||||||
|
|
Loading…
Reference in a new issue