We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.8.0
Any
let layer; function setup() { createCanvas(400, 400, WEBGL); layer = createFramebuffer(); } function draw() { layer.begin(); orbitControl(); background(220); sphere(150); layer.end(); image(layer,-width/2,-height/2) }
The text was updated successfully, but these errors were encountered:
Cameras on framebuffers will have yScale = -1:
yScale = -1
p5.js/src/webgl/p5.Framebuffer.js
Line 30 in 17304ce
So we probably just need to multiply by that property of the active camera when updating using oribtControl
oribtControl
Sorry, something went wrong.
https://editor.p5js.org/aman12345/sketches/89htfYFM8
Is this the expected behaviour? Shall I make PR?
That looks good to me @perminder-17!
Let me make a PR then.
Successfully merging a pull request may close this issue.
Most appropriate sub-area of p5.js?
p5.js version
1.8.0
Web browser and version
Any
Operating System
Any
Steps to reproduce this
Steps:
Snippet:
The text was updated successfully, but these errors were encountered: