Random plugin not included in shader source.
create3000 opened this issue · 1 comments
create3000 commented
If Math.random is in a function added by kernel.addFunction, kernel.setFunctions or gpu.addFunction then the plugin is not includes in the shader source.
Workaround: add a comment with // Math.random() to your main kernel function.
create3000 commented
Note: I have used gpu-browser.js from /dist.