From 9f8459653ddc648111d4e15ccbd17cbb15c4cd59 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Thu, 3 Nov 2022 02:02:08 +0900 Subject: [PATCH] follow --- Assets/UniGLTF/Tests/UniGLTF/MaterialTests.cs | 4 ++-- Assets/UniGLTF/Tests/UniGLTF/TextureTests.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/UniGLTF/Tests/UniGLTF/MaterialTests.cs b/Assets/UniGLTF/Tests/UniGLTF/MaterialTests.cs index 845b1f328..367791e1a 100644 --- a/Assets/UniGLTF/Tests/UniGLTF/MaterialTests.cs +++ b/Assets/UniGLTF/Tests/UniGLTF/MaterialTests.cs @@ -28,7 +28,7 @@ namespace UniGLTF srcMaterial.mainTextureOffset = offset; srcMaterial.mainTextureScale = scale; - var materialExporter = new MaterialExporter(); + var materialExporter = new BuiltinRPGltfMaterialExporter(); var gltfMaterial = materialExporter.ExportMaterial(srcMaterial, textureExporter, new GltfExportSettings()); gltfMaterial.pbrMetallicRoughness.baseColorTexture.extensions = gltfMaterial.pbrMetallicRoughness.baseColorTexture.extensions.Deserialize(); @@ -257,7 +257,7 @@ namespace UniGLTF var material = new Material(Shader.Find("Standard")); material.SetColor("_EmissionColor", new Color(0, 1, 2, 1)); material.EnableKeyword("_EMISSION"); - var materialExporter = new MaterialExporter(); + var materialExporter = new BuiltinRPGltfMaterialExporter(); var textureExporter = new TextureExporter(new EditorTextureSerializer()); var gltfMaterial = materialExporter.ExportMaterial(material, textureExporter, new GltfExportSettings()); diff --git a/Assets/UniGLTF/Tests/UniGLTF/TextureTests.cs b/Assets/UniGLTF/Tests/UniGLTF/TextureTests.cs index 6f8e6ba84..e00041ea3 100644 --- a/Assets/UniGLTF/Tests/UniGLTF/TextureTests.cs +++ b/Assets/UniGLTF/Tests/UniGLTF/TextureTests.cs @@ -23,7 +23,7 @@ namespace UniGLTF var material = new Material(Shader.Find("Standard")); material.mainTexture = tex0; - var materialExporter = new MaterialExporter(); + var materialExporter = new BuiltinRPGltfMaterialExporter(); materialExporter.ExportMaterial(material, textureExporter, new GltfExportSettings()); var exported = textureExporter.Export();