mirror of
https://github.com/overte-org/overte.git
synced 2025-07-28 21:10:24 +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") {
|
} 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