Skip to content

Commit

Permalink
Update clearDepth() example
Browse files Browse the repository at this point in the history
  • Loading branch information
davepagurek authored Jun 13, 2024
1 parent 9b9b5da commit d61b286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/rendering.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ p5.prototype.createFramebuffer = function(options) {
* createCanvas(100, 100, WEBGL);
*
* // Create the p5.Framebuffer objects.
* prev = createFramebuffer({ format: FLOAT });
* previous = createFramebuffer({ format: FLOAT });
* current = createFramebuffer({ format: FLOAT });
*
* describe(
Expand All @@ -673,9 +673,9 @@ p5.prototype.createFramebuffer = function(options) {
* }
*
* function draw() {
* // Set the previous p5.Framebuffer to the
* // Swap the previous p5.Framebuffer and the
* // current one so it can be used as a texture.
* previous = current;
* [previous, current] = [current, previous];
*
* // Start drawing to the current p5.Framebuffer.
* current.begin();
Expand Down

0 comments on commit d61b286

Please sign in to comment.