Shading not working in v1.1.9 July 22, 2020

I just upgraded to p5js v1.1.9 July 22, 2020.
I had shading before but now I don’t.

settings:
lights();
ambientLight(80,80,80);
pointLight(0,0,0, 96,48,42);

What do I need to change?

Hey there,

It’s hard to tell without a complete example. If you post your sketch at https://editor.p5js.org (or elsewhere), we may be able to figure it out together.

1 Like

Hello,

Take a look at the references for this:

0, 0, 0 in RGB or HSB mode is black and will not add light.

I agree with @Sven

Please provide a simple example with more context.

:)

1 Like