Hey Zak, still active in the shader forums, huh?

Thanks for your reply. I know that TV chooses the n-closest lights and passes them to the shader.
But there isn't a function in TVLightsFactory to get the indexes of those active lights. I asked Sylvain and he told me that you have to iterate through all lights and do a boolean check using IsLightActive() in order to find those indexes.
Say that you get the following indexes after iteration: 2,7,9,11
Now in the shader the LIGHTPOINT0_POSITION is the position of the light with index 2?
The LIGHTPOINT1_POSITION is the position of light 7?
That's what I'm asking.
Edit: I found a workaround but it would still be good to know.