We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c1a715 commit cdec32fCopy full SHA for cdec32f
src/webgl/p5.Camera.js
@@ -1844,6 +1844,8 @@ class Camera {
1844
_cam.projMatrix = this.projMatrix.copy();
1845
_cam.yScale = this.yScale;
1846
1847
+ _cam.cameraType = this.cameraType;
1848
+
1849
return _cam;
1850
}
1851
src/webgl/p5.Framebuffer.js
@@ -31,6 +31,12 @@ class FramebufferCamera extends Camera {
31
this.defaultCameraFOV =
32
2 * Math.atan(this.fbo.height / 2 / this.defaultEyeZ);
33
34
35
+ copy() {
36
+ const _cam = super.copy();
37
+ _cam.fbo = this.fbo;
38
+ return _cam;
39
+ }
40
41
42
class FramebufferTexture {
0 commit comments