How to light a vertex

I’m trying to make little “hills” and was hoping to light them up. I’m using sets of vertexes but cant get light to act on them. I can make light work on a sphere or a box, but not my shapes made with vertexes.

I feel like I must be missing something fundemental here. Any ideas?

Here’s the example: https://codepen.io/loficodes/pen/9f9cb3adf6e5e02de450d1849cde85c2?editors=0010

Thanks for any help

1 Like

lights ();

in draw after background?

1 Like

You sent me the right direction! The issue was that lights work on shapes with material. In the lights() demo they’re using a box, which already has a material. Vertexes dont.

Adding specularMaterial(250) got the whole thing going.

Thank you so much!

2 Likes