Identify a light in a light() spatial shader?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cj

I am using a spatial light shader to give a light a unique border. It works great! But I need multiple lights. Is there any way to accurately identify a specific light in light()?

Currently I am doing this: distance(normalize(LIGHT_COLOR), center_light.rgb) < 0.75
It works, but it prevents other lights from using the same color and requires an additional “center_light” uniform.