文档

Unity Engine

Unity Engine

MaterialGlobalIlluminationFlags

How the material interacts with lightmaps and lightprobes.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
[Flags]public enum MaterialGlobalIlluminationFlags

Remarks

Additional Resources: Material.globalIlluminationFlags.

Fields

Value

Description

AnyEmissiveHelper Mask to be used to query the enum only based on whether Enlighten Realtime Global Illumination or baked GI is set, ignoring all other bits.
BakedEmissiveThe emissive lighting affects baked Global Illumination. It emits lighting into baked lightmaps and baked lightprobes.
EmissiveIsBlackThe emissive lighting is guaranteed to be black. This lets the lightmapping system know that it doesn't have to extract emissive lighting information from the material and can simply assume it is completely black.
NoneThe emissive lighting does not affect Global Illumination at all.
RealtimeEmissiveThe emissive lighting will affect Enlighten Realtime Global Illumination. It emits lighting into real-time lightmaps and real-time Light Probes.