gpujs/gpu.js

Random plugin not included in shader source.

create3000 opened this issue · 1 comments

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.