Rename one texture type from Metalness to Metallic

master
huxingyi 2020-11-18 22:09:47 +09:30
parent 01aa96c3bd
commit 5b84c5e7c0
3 changed files with 9 additions and 7 deletions

View File

@ -86,7 +86,7 @@ void MaterialPreviewsGenerator::generate()
textureGenerator->addPartColorMap(partId, image, layer.tileScale);
else if (TextureType::Normal == mapItem.forWhat)
textureGenerator->addPartNormalMap(partId, image, layer.tileScale);
else if (TextureType::Metalness == mapItem.forWhat)
else if (TextureType::Metallic == mapItem.forWhat)
textureGenerator->addPartMetalnessMap(partId, image, layer.tileScale);
else if (TextureType::Roughness == mapItem.forWhat)
textureGenerator->addPartRoughnessMap(partId, image, layer.tileScale);

View File

@ -167,7 +167,7 @@ void TextureGenerator::prepare()
addPartColorMap(bmeshNode.partId, image, tileScale);
else if (TextureType::Normal == forWhat)
addPartNormalMap(bmeshNode.partId, image, tileScale);
else if (TextureType::Metalness == forWhat)
else if (TextureType::Metallic == forWhat)
addPartMetalnessMap(bmeshNode.partId, image, tileScale);
else if (TextureType::Roughness == forWhat)
addPartRoughnessMap(bmeshNode.partId, image, tileScale);

View File

@ -9,7 +9,7 @@ enum class TextureType
None,
BaseColor,
Normal,
Metalness,
Metallic,
Roughness,
AmbientOcclusion,
Count
@ -24,7 +24,7 @@ QString TextureTypeToDispName(TextureType type) \
return QObject::tr("Base Color"); \
case TextureType::Normal: \
return QObject::tr("Normal Map"); \
case TextureType::Metalness: \
case TextureType::Metallic: \
return QObject::tr("Metallic"); \
case TextureType::Roughness: \
return QObject::tr("Roughness"); \
@ -46,8 +46,8 @@ const char *TextureTypeToString(TextureType type) \
return "BaseColor"; \
case TextureType::Normal: \
return "Normal"; \
case TextureType::Metalness: \
return "Metalness"; \
case TextureType::Metallic: \
return "Metallic"; \
case TextureType::Roughness: \
return "Roughness"; \
case TextureType::AmbientOcclusion: \
@ -67,8 +67,10 @@ TextureType TextureTypeFromString(const char *typeString) \
return TextureType::BaseColor; \
if (type == "Normal") \
return TextureType::Normal; \
if (type == "Metallic") \
return TextureType::Metallic; \
if (type == "Metalness") \
return TextureType::Metalness; \
return TextureType::Metallic; \
if (type == "Roughness") \
return TextureType::Roughness; \
if (type == "AmbientOcclusion") \