pointLight not working with custom shapes or I'm doing it wrong

Hello Everybody! I’m new here, but I am in love with p5js too!

I’m trying to work with lighting in a 3D space. I can get it to work with a sphere, but it’s not working with any custom shapes that I make. Is this a bug or is it my code?

Here is a link to my code. (I have a copy, so experiment at will)
https://editor.p5js.org/fragdemented/sketches/CaBA9_Esg

Any insights and help would be appreciated.

It’s most likely there aren’t any valid normal vectors for the shape for the shader to calculate lights.

But I’m not sure how to specify normal vectors in p5.js.

1 Like

Thank you. It gave me a starting place to look but I haven’t been able to find any kind of solution yet.