When the window narrows and var ‘dist’ gets smaller, this happens:
Edit: if your shapes look like this, the culprit is the clipping plane. The Coding Train video on P5 js Camera features a solution.
When the window narrows and var ‘dist’ gets smaller, this happens:
Edit: if your shapes look like this, the culprit is the clipping plane. The Coding Train video on P5 js Camera features a solution.
Thanks for the solution tip. The clip is here:
…and the section on perspective() and the clipping plane begins right at minute 8.