gpu.js
gpu.js copied to clipboard
Random plugin not included in shader source.
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.
Note: I have used gpu-browser.js from /dist.