Multiple lights

E-mail this post

Remember me (?)

All personal information that you provide here will be governed by the Privacy Policy of More...

After some reading and haxx0ring I finally have my multiple-light support up and running. Hooray :) My initial plan was to have my shaders support of to 4 lights per pass. But I already reached my shader size limit when using only 2 lights per pass. So for now, I'm doing multiple rendering passes per lit object. It's one pass for each light affecting an object. I haven't done any performance testing yet. But for what I've understood this isn't very performance friendly, but as long as I keep the number of lights affecting an object low, nothing bad will happen :)

Anyway, as you can see in my screenie it actually works. The scene in that picture contains 5 lights, all affecting each of the 5 objects.
Ohw and the other half of the picture is a screenshot from the scene as I modelled it in Maya. Isn't that good looking programmer art? :)

About me

Project overview


Previous posts


Partners in crime


ATOM 0.3

Powered by Blogger