Merge pull request #227 from hiroj/fix_emission_export

If Emission keyword is false, do not output a value
This commit is contained in:
yutopp
2019-03-18 23:48:46 +09:00
committed by GitHub

View File

@@ -142,6 +142,9 @@ namespace UniGLTF
static void Export_Emission(Material m, TextureExportManager textureManager, glTFMaterial material)
{
if (m.IsKeywordEnabled("_EMISSION") == false)
return;
if (m.HasProperty("_EmissionColor"))
{
var color = m.GetColor("_EmissionColor");