Skip to content

Commit bd358f0

Browse files
committed
Clear before the second blur shader pass to fix Windows rendering
1 parent 502b059 commit bd358f0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

GaussianBlurRenderer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class GaussianBlurRenderer extends BlurRenderer {
3232

3333
this.fbo2.draw(() => {
3434
this.target.push()
35+
this.target.clear()
3536
this.target.noStroke()
3637
this.target.rectMode(CENTER)
3738
this.target.shader(this.shader)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Add the library to your source code, *after* loading p5 but *before* loading you
1818

1919
### Via CDN
2020
```html
21-
<script src="https://cdn.jsdelivr.net/npm/@davepagurek/[email protected].6/p5.Framebuffer.min.js"></script>
21+
<script src="https://cdn.jsdelivr.net/npm/@davepagurek/[email protected].7/p5.Framebuffer.min.js"></script>
2222
```
2323

2424
### Self-hosted

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@davepagurek/p5.framebuffer",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"main": "p5.Framebuffer.js",
55
"author": "Dave Pagurek <[email protected]>",
66
"license": "MIT",

0 commit comments

Comments
 (0)