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(LIGHTCOLOR), centerlight.rgb) < 0.75
It works, but it prevents other lights from using the same color and requires an additional "center_light" uniform.