Multiple lights


Hi, I can’t figure out how to set multiple lights. I’m working on 3d objects


Hey, light and lights is a feature of a shader you can look for one on a contributions page, there should be few or code your own…


yeah but, for example, using Phongdirectional, how can I get 2 or 3 lights on a same object?


i’m afraid you cannot set multiple lights with the default PhongDirectional effect. you’d need to modify the shader to be able to do so.

if you feel that is too much for you, please have a look at this contribution: and its accompanying video tutorial:


Thanks, I really appreciate it!


I just uploaded gouraud & phong shaders that accept spreads as input: