CustomProvided
The light probe shader uniform values are extracted from the material property block set on the renderer.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Field
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
CustomProvided = 4
Remarks
Property , , , , , and will be set to zero if they are not part of the MaterialPropertyBlock.
unity_SHArunity_SHAgunity_SHAbunity_SHBrunity_SHBgunity_SHBbunity_SHCProperty will be calculated as in normal lighting if it is not part of the MaterialPropertyBlock.
unity_ProbesOcclusionNote 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.