diff --git a/src/webgl/p5.Camera.js b/src/webgl/p5.Camera.js index 30d61e2185..1fc0a1219f 100644 --- a/src/webgl/p5.Camera.js +++ b/src/webgl/p5.Camera.js @@ -41,6 +41,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -86,6 +89,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -192,6 +198,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -253,6 +262,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -298,6 +310,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -360,6 +375,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -405,6 +423,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-right. * cam.setPosition(100, -400, 800); * @@ -467,6 +488,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -512,6 +536,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-right. * cam.setPosition(100, -400, 800); * @@ -574,6 +601,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -619,6 +649,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-right. * cam.setPosition(100, -400, 800); * @@ -681,6 +714,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-right: (100, -400, 800) * // Point it at the origin: (0, 0, 0) * // Set its "up" vector: (0, 1, 0). @@ -725,6 +761,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-right: (100, -400, 800) * // Point it at the origin: (0, 0, 0) * // Set its "up" vector: (0, 1, 0). @@ -786,6 +825,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-right: (100, -400, 800) * // Point it at the origin: (0, 0, 0) * // Set its "up" vector: (0, 1, 0). @@ -830,6 +872,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-right: (100, -400, 800) * // Point it at the origin: (0, 0, 0) * // Set its "up" vector: (0, 1, 0). @@ -891,6 +936,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-right: (100, -400, 800) * // Point it at the origin: (0, 0, 0) * // Set its "up" vector: (0, 1, 0). @@ -935,6 +983,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-right: (100, -400, 800) * // Point it at the origin: (0, 0, 0) * // Set its "up" vector: (0, 1, 0). @@ -1605,6 +1656,9 @@ class Camera { * normalMaterial(); * // Create a p5.Camera object. * cam = createCamera(); + * + * // Set the camera + * setCamera(cam); * } * * function draw() { @@ -1684,6 +1738,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -1746,6 +1803,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -1809,6 +1869,9 @@ class Camera { * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); * @@ -3803,6 +3866,9 @@ function camera(p5, fn){ * // Create a p5.Camera object. * cam = createCamera(); * + * // Set the camera + * setCamera(cam); + * * // Place the camera at the top-center. * cam.setPosition(0, -400, 800); *