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
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) :