I don’t believe the order in which the light is accumulated makes a difference, as those are just add operations.
I assume you’re hoping to not have the light affecting the objects, so they’re fully emissive? In this case, set diffuse color of the material to be black instead of the default white, and the light contribution from the lights will be zero.
@mvaligursky those operations are adding code to a string that is later executed, if I’m not mistaken. I’m currently making a glow effect using a rim light shader, and therefore just making diffuse black is not an option.
See line 586 where emissive gets accumulated to the output … it’s done after the lighting itself, but could have been implemented to be done before with the exact same result, as both lights and emissive contributions are simply added together.
So what are you trying to do? How are you implemented rim light? It sounds like a custom shader / shader chunk?