directionaLight() doesn't have any effect on my p5.js skecth

Hi everyone.

I’m working on a 3D maze game in p5.js.
Everything is working well so far, except the lights, and I can’t figure why :confused:
For some reason I am unable to use directionalLight() or pointLight(), only ambientLight() take effect on my sketch.

[EDIT. directionaLight() does affect my sketch, but not the plane() object]

Your help would be very appreciated !

Here is what it currently looks like :

And here is what I expected (made with processing) :

1 Like

Solved !
For some reasons, the plane() objects do not reacts to directionalLight() and pointLight(), I had to use flat box() instead. :upside_down_face:

1 Like

thanks for sharing your solution, @colin! There is a known bug with plane lighting that will be fixed in the next release. :slight_smile:

1 Like

Thanks for your answer, I can’t wait to see the next release. Any idea of how long it will takes ?
Thank you also for your work, by the way, I truly love p5.js ! :smiley: