Method InitializeLightConstants_Common
InitializeLightConstants_Common(NativeArray<VisibleLight>, int, out Vector4, out Vector4, out Vector4, out Vector4, out Vector4)
Initializes common light constants.
Declaration
public static void InitializeLightConstants_Common(NativeArray<VisibleLight> lights, int lightIndex, out Vector4 lightPos, out Vector4 lightColor, out Vector4 lightAttenuation, out Vector4 lightSpotDir, out Vector4 lightOcclusionProbeChannel)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<VisibleLight> | lights | List of lights to iterate. |
int | lightIndex | The index of the light. |
Vector4 | lightPos | The position of the light. |
Vector4 | lightColor | The color of the light. |
Vector4 | lightAttenuation | The attenuation of the light. |
Vector4 | lightSpotDir | The direction of the light. |
Vector4 | lightOcclusionProbeChannel | The occlusion probe channel for the light. |