mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-22 18:45:06 -05:00
set emission flag
This commit is contained in:
@@ -157,6 +157,11 @@ namespace UniGLTF
|
||||
context.EmissionTexture = await getTextureAsync(desc, awaitCaller);
|
||||
}
|
||||
}
|
||||
|
||||
if (context.EmissionColorLinear is {maxColorComponent: > 0} || context.EmissionTexture != null)
|
||||
{
|
||||
context.IsEmissionEnabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user