gpu.js icon indicating copy to clipboard operation
gpu.js copied to clipboard

Random plugin not included in shader source.

Open create3000 opened this issue 3 years ago • 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.

create3000 avatar Aug 19 '22 19:08 create3000

Note: I have used gpu-browser.js from /dist.

create3000 avatar Aug 19 '22 20:08 create3000