struct in UnityEngine.Experimental.GlobalIllumination
매뉴얼로 전환The interop structure to pass light information to the light baking backends. There are helper structures for Directional, Point, Spot and Rectangle lights to correctly initialize this structure.
color | The color of the light. |
coneAngle | The cone angle for spot lights. |
falloff | The falloff model to use for baking point and spot lights. |
indirectColor | The indirect color of the light. |
innerConeAngle | The inner cone angle for spot lights. |
instanceID | The light's instanceID. |
mode | The lightmap mode for the light. |
orientation | The orientation of the light. |
position | The position of the light. |
range | The range of the light. Unused for directional lights. |
shadow | Set to 1 for shadow casting lights, 0 otherwise. |
shape0 | The light's sphere radius for point and spot lights, or the width for rectangle lights. |
shape1 | The height for rectangle lights. |
type | The type of the light. |
Init | Initialize the struct with the parameters from the given light type. |
InitNoBake | Initialize a light so that the baking backends ignore it. |