Description

The light probe shader uniform values are extracted from the material property block set on the renderer.

Property unity_SHAr, unity_SHAg, unity_SHAb, unity_SHBr, unity_SHBg, unity_SHBb and unity_SHC will be set to zero if they are not part of the MaterialPropertyBlock.
Property unity_ProbesOcclusion will be calculated as in normal lighting if it is not part of the MaterialPropertyBlock.

Note that using the light probe values baked at a different place may lead to incorrect rendering, especially when local lights (i.e. point lights and spot lights) are used. This mode is more useful when drawing instanced objects with Graphics.DrawMeshInstanced, where the light probe data is pre-calculated and provided as arrays.

See Also: MaterialPropertyBlock, MaterialPropertyBlock.CopySHCoefficientArraysFrom, MaterialPropertyBlock.CopyProbeOcclusionArrayFrom.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961