mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-20 09:47:56 -05:00
Merge pull request #227 from hiroj/fix_emission_export
If Emission keyword is false, do not output a value
This commit is contained in:
commit
44548b95ea
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user