Posted By: BoH_Havoc
ent_nextlight() - more than 7 lights? - 12/24/09 20:14
I don't know if it's possible to implement this, as i have no real idea on how A7's lightmanager works internally, but is there any chance of changing the ent_nextlight function so it accepts any number of lights and not only 7?
I'm asking, because i have to pass all dynamic lights there are to my deferred shader. I have no problem retriving the lights which were created by script, but retriving the dynamic lights placed in WED seems to be only possible with ent_nexlight.
Ultimately i would need the ~64 nearest dynamic lights to the camera which would then be passed to the shader.
If it isn't possible to change the ent_nextlight function, do you know of any other way to retrive WED placed dynamic lights?
Oh any merry christmas and some nice days off
I'm asking, because i have to pass all dynamic lights there are to my deferred shader. I have no problem retriving the lights which were created by script, but retriving the dynamic lights placed in WED seems to be only possible with ent_nexlight.
Ultimately i would need the ~64 nearest dynamic lights to the camera which would then be passed to the shader.
If it isn't possible to change the ent_nextlight function, do you know of any other way to retrive WED placed dynamic lights?
Oh any merry christmas and some nice days off