mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge pull request #12898 from kitely/emissivemap-relative-path
In Material resources, support relative paths for 'emissiveMap'
This commit is contained in:
commit
f87bfc14de
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") {
|
||||
auto value = materialJSON.value(key);
|
||||
if (value.isString()) {
|
||||
material->setEmissiveMap(value.toString());
|
||||
material->setEmissiveMap(baseUrl.resolved(value.toString()));
|
||||
}
|
||||
} else if (key == "albedoMap") {
|
||||
auto value = materialJSON.value(key);
|
||||
|
|
Loading…
Reference in a new issue