mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 21:14:19 -05:00
Merge pull request #228 from hiroj/fix_material_test
Fix material test to pass
This commit is contained in:
commit
2c925ce7e9
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user