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 aa4de7f commit 547bc8bCopy full SHA for 547bc8b
test/unit/webgl/p5.Shader.js
@@ -324,6 +324,11 @@ suite('p5.Shader', function() {
324
expect(modified.fragSrc()).not.to.match(/#define AUGMENTED_HOOK_getVertexColor/);
325
});
326
327
+ test('anonymous function shaderModifier does not throw when parsed', function() {
328
+ const callModify = () => myShader.modify(function() {});
329
+ expect(callModify).not.toThrowError();
330
+ });
331
+
332
test('filled hooks do have an AUGMENTED_HOOK define', function() {
333
const modified = myShader.modify({
334
'vec4 getVertexColor': `(vec4 c) {
0 commit comments