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 36c4c2d commit 6e1311dCopy full SHA for 6e1311d
1 file changed
src/webgl/ShaderGenerator.js
@@ -1883,10 +1883,8 @@ if (typeof p5 !== 'undefined') {
1883
* let myShader;
1884
* function setup() {
1885
* createCanvas(200, 200, WEBGL);
1886
- * myShader = baseStrokeShader().modify(() => {
1887
- * shouldDiscard(willDiscard => {
1888
- * // Discard fragments based only on the default logic
1889
- * return willDiscard;
+ * myShader = baseStrokeShader().modify({
+ * 'bool shouldDiscard': '(bool outside) { return outside; }'
1890
* });
1891
* }
1892
* function draw() {
0 commit comments