Rename one texture type from Metalness to Metallic
parent
01aa96c3bd
commit
5b84c5e7c0
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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") \
|
||||
|
|
Loading…
Reference in New Issue