_METALLICSPECGLOSSMAPが正常にURP Materialに設定されない問題を修正

This commit is contained in:
notargs 2023-04-17 10:21:27 +09:00
parent 401b84ff50
commit e3150773c8

View File

@ -79,7 +79,7 @@ namespace UniGLTF
if (src.pbrMetallicRoughness.metallicRoughnessTexture != null && src.pbrMetallicRoughness.metallicRoughnessTexture.index != -1 && standardTexDesc.HasValue)
{
actions.Add(material => material.EnableKeyword("_METALLICGLOSSMAP"));
actions.Add(material => material.EnableKeyword("_METALLICSPECGLOSSMAP"));
textureSlots.Add("_MetallicGlossMap", standardTexDesc.Value);
// Set 1.0f as hard-coded. See: https://github.com/dwango/UniVRM/issues/212.
floatValues.Add("_Metallic", 1.0f);