I am lighting a scene with 4 lights. My understanding is that once the lights go out to the shaders they might be in any order, light 0 in my program might not be light 0 in the shader, they get sorted by distance and stuff.
I don't want this. I want to know that light 0 to light 3 as I declare them in my program will also be light 0 to light 3 in my shader. I need this because my shader is going to do some different things in one pass depending on which light it is.
Doing searching, I see some stuff about lightlists and renderable listeners or something, I didnt understand it and it seemed like a lot of work to achieve something very simple.
How do I turn off all this unwanted scrambling of the light orders?





