ent_nextlight() - more than 7 lights?

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? laugh


Oh any merry christmas and some nice days off wink
Posted By: DJBMASTER

Re: ent_nextlight() - more than 7 lights? - 12/25/09 08:52

hi, i posted a solution here...

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=303097&#Post303097

...just in case you missed it.
Posted By: Tobias

Re: ent_nextlight() - more than 7 lights? - 12/26/09 19:22

Use c_scan for detecting the nearest lights, thats much easier than reading them out of the WMB file.
© 2024 lite-C Forums