From e3150773c869cfbfdefe5ac717dadc105a283567 Mon Sep 17 00:00:00 2001 From: notargs Date: Mon, 17 Apr 2023 10:21:27 +0900 Subject: [PATCH] =?UTF-8?q?=5FMETALLICSPECGLOSSMAP=E3=81=8C=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E3=81=ABURP=20Material=E3=81=AB=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../URP/Import/Materials/UrpGltfPbrMaterialImporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/URP/Import/Materials/UrpGltfPbrMaterialImporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/URP/Import/Materials/UrpGltfPbrMaterialImporter.cs index c72e5b884..be38188d8 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/URP/Import/Materials/UrpGltfPbrMaterialImporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/URP/Import/Materials/UrpGltfPbrMaterialImporter.cs @@ -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);