Skip to content

Conversation

ombalgude
Copy link

Resolves #8097

Changes:
This pull request introduces a new joint getter/setter function, activeCamera(), to the p5.RendererGL.prototype to standardize how the active camera is accessed and modified.

  1. New activeCamera() function:
  • When called with no arguments (activeCamera()), it acts as a getter and returns the current camera object.
  • When called with a camera object (activeCamera(myCam)), it acts as a setter for the active camera.
  1. Deprecated setCamera():
  • The existing setCamera() function is now deprecated.
  • For backward compatibility, it continues to function by calling the new activeCamera() internally.
  • These changes align with the common p5.js pattern of using joint getter/setter functions and improve the consistency of the WebGL API.

PR Checklist

  • npm run lint passes
  • Inline reference is included / updated
  • Unit tests are included / updated

limzykenneth and others added 30 commits June 29, 2025 23:03
…or-docs-for-visual-testing-for-dev-2.0

Updating visual tests docs for 2.x versions
…rnings

Skip adding degenerate faces in textToModel
Add GLSL-based noise(vec2) function to p5.strands (processing#7897)
…onymousFunctionCallbackFix

Fix inline anonymous functions causing a parsing error in p5.strands callbacks
…ms-instance

Fix p5.strands uniform calls, add instance mode construct
lukeplowden and others added 29 commits September 16, 2025 19:59
Fix: allow single-arg atan() outside strands; add unit test
[p5.strands] Significant refactor for p5.strands
…a-docs

Update createCamera docs since it no longer sets the active camera
Copy link

welcome bot commented Sep 23, 2025

🎉 Thanks for opening this pull request! For guidance on contributing, check out our contributor guidelines and other resources for contributors!
🤔 Please ensure that your PR links to an issue, which has been approved for work by a maintainer; otherwise, there might already be someone working on it, or still ongoing discussion about implementation. You are welcome to join the discussion in an Issue if you're not sure!
🌸 Once your PR is merged, be sure to add yourself to the list of contributors on the readme page !

Thank You!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new getCamera function for V1 & V2