Skip to content

Commit 3b3437c

Browse files
committed
Fix shouldDiscard example
1 parent 36c4c2d commit 3b3437c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/webgl/ShaderGenerator.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,8 +1885,7 @@ if (typeof p5 !== 'undefined') {
18851885
* createCanvas(200, 200, WEBGL);
18861886
* myShader = baseStrokeShader().modify(() => {
18871887
* shouldDiscard(willDiscard => {
1888-
* // Discard fragments based only on the default logic
1889-
* return willDiscard;
1888+
* 'bool shouldDiscard': '(bool outside) { return outside; }'
18901889
* });
18911890
* }
18921891
* function draw() {

0 commit comments

Comments
 (0)