mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 06:48:04 +02:00
making requested changes
This commit is contained in:
parent
2a16ba57ac
commit
5d000495df
1 changed files with 6 additions and 6 deletions
|
@ -642,9 +642,9 @@ NetworkMaterial::NetworkMaterial(const HFMMaterial& material, const QUrl& textur
|
||||||
map->setUseAlphaChannel(true);
|
map->setUseAlphaChannel(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
setTextureMap(MapChannel::ALBEDO_MAP, map);
|
setTextureMap(MapChannel::ALBEDO_MAP, map);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -674,8 +674,8 @@ NetworkMaterial::NetworkMaterial(const HFMMaterial& material, const QUrl& textur
|
||||||
auto map = fetchTextureMap(textureBaseUrl, material.occlusionTexture, image::TextureUsage::OCCLUSION_TEXTURE, MapChannel::OCCLUSION_MAP);
|
auto map = fetchTextureMap(textureBaseUrl, material.occlusionTexture, image::TextureUsage::OCCLUSION_TEXTURE, MapChannel::OCCLUSION_MAP);
|
||||||
if (map) {
|
if (map) {
|
||||||
map->setTextureTransform(material.occlusionTexture.transform);
|
map->setTextureTransform(material.occlusionTexture.transform);
|
||||||
|
setTextureMap(MapChannel::OCCLUSION_MAP, map);
|
||||||
}
|
}
|
||||||
setTextureMap(MapChannel::OCCLUSION_MAP, map);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!material.emissiveTexture.filename.isEmpty()) {
|
if (!material.emissiveTexture.filename.isEmpty()) {
|
||||||
|
@ -695,8 +695,8 @@ NetworkMaterial::NetworkMaterial(const HFMMaterial& material, const QUrl& textur
|
||||||
_lightmapParams = material.lightmapParams;
|
_lightmapParams = material.lightmapParams;
|
||||||
map->setTextureTransform(_lightmapTransform);
|
map->setTextureTransform(_lightmapTransform);
|
||||||
map->setLightmapOffsetScale(_lightmapParams.x, _lightmapParams.y);
|
map->setLightmapOffsetScale(_lightmapParams.x, _lightmapParams.y);
|
||||||
|
setTextureMap(MapChannel::LIGHTMAP_MAP, map);
|
||||||
}
|
}
|
||||||
setTextureMap(MapChannel::LIGHTMAP_MAP, map);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -719,8 +719,8 @@ void NetworkMaterial::setTextures(const QVariantMap& textureMap) {
|
||||||
map->setTextureTransform(_albedoTransform);
|
map->setTextureTransform(_albedoTransform);
|
||||||
// when reassigning the albedo texture we also check for the alpha channel used as opacity
|
// when reassigning the albedo texture we also check for the alpha channel used as opacity
|
||||||
map->setUseAlphaChannel(true);
|
map->setUseAlphaChannel(true);
|
||||||
|
setTextureMap(MapChannel::ALBEDO_MAP, map);
|
||||||
}
|
}
|
||||||
setTextureMap(MapChannel::ALBEDO_MAP, map);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!normalName.isEmpty()) {
|
if (!normalName.isEmpty()) {
|
||||||
|
@ -768,8 +768,8 @@ void NetworkMaterial::setTextures(const QVariantMap& textureMap) {
|
||||||
if (map) {
|
if (map) {
|
||||||
map->setTextureTransform(_lightmapTransform);
|
map->setTextureTransform(_lightmapTransform);
|
||||||
map->setLightmapOffsetScale(_lightmapParams.x, _lightmapParams.y);
|
map->setLightmapOffsetScale(_lightmapParams.x, _lightmapParams.y);
|
||||||
|
setTextureMap(MapChannel::LIGHTMAP_MAP, map);
|
||||||
}
|
}
|
||||||
setTextureMap(MapChannel::LIGHTMAP_MAP, map);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue