Fix usage of perspective() with no args by davepagurek · Pull Request #8564 · processing/p5.js
Navigation Menu
{{ message }}
processing / p5.js Public
- Notifications You must be signed in to change notification settings
- Fork 3.7k
Merged
Fix usage of perspective() with no args#8564
davepagurek merged 1 commit intodev-2.0from
Fix usage of perspective() with no args#8564
davepagurek merged 1 commit intodev-2.0from
Conversation
Copy link
Contributor
davepagurek
commented
Feb 24, 2026
davepagurek
commented
Resolves #8563
Changes:
- Makes sure all camera properties are cloned when we call
.clone(). Basically,perspective()clones the existing camera before applying changes to it, but since not all camera property defaults were copied over, it was usingundefinedin math and puttingNaNs in its matrices.
Screenshots of the change:
Live: https://editor.p5js.org/davepagurek/sketches/CVVyKhUnH
PR Checklist
-
npm run lintpasses - Inline reference is included / updated
- Unit tests are included / updated
davepagurek
deleted the
fix/perspective
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
