@warrenm store recip radius instead for point shader. Dir light = 1.0. Same principle for spots vs point.
The broader question is how to support multiple point/directional/spot lights in a shader with as few branches as possible.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.