From 93e9c9c08ef38ac1719900ea8e59a996365209ae Mon Sep 17 00:00:00 2001 From: j-hirose Date: Tue, 19 Mar 2019 16:57:01 +0900 Subject: [PATCH] Fix material test to pass --- Assets/VRM/UniGLTF/Editor/Tests/MaterialTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/VRM/UniGLTF/Editor/Tests/MaterialTests.cs b/Assets/VRM/UniGLTF/Editor/Tests/MaterialTests.cs index 8109ecdfd..7e65293fb 100644 --- a/Assets/VRM/UniGLTF/Editor/Tests/MaterialTests.cs +++ b/Assets/VRM/UniGLTF/Editor/Tests/MaterialTests.cs @@ -183,6 +183,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 textureExportManager = new TextureExportManager(new Texture[] { }); var gltfMaterial = materialExporter.ExportMaterial(material, textureExportManager);