Multiple lights


#1

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


#2

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…


#3

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


#4

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: https://vvvv.org/contribution/superphysical and its accompanying video tutorial: https://www.youtube.com/watch?v=6Oj1NiOKIo0


#5

Thanks, I really appreciate it!


#6

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