The code takes into account only one additional light source. I need the code to take into account several sources of extra light. What's wrong here? Code (CSharp): void AdditionalLights_half( half3 WorldPos, out half3 Color, out half3 Direction, out half DistanceAtten, out half ShadowAtten) { Direction = 0; Color = 0; ShadowAtten = 0; DistanceAtten = 0; #ifndef SHADERGRAPH_PREVIEW int pixelLightCount = GetAdditionalLightsCount(); for (int i = 0; i < pixelLightCount; ++i) { Light light = GetAdditionalLight(i, WorldPos); Color = light.color; Direction = light.direction; ShadowAtten = light.shadowAttenuation; DistanceAtten = light.distanceAttenuation; } #endif }