Merge pull request #228 from hiroj/fix_material_test

Fix material test to pass
This commit is contained in:
yutopp
2019-03-20 14:43:58 +09:00
committed by GitHub

View File

@@ -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);