Open create3000 opened 2 years ago
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.
Math.random
kernel.addFunction
kernel.setFunctions
gpu.addFunction
Workaround: add a comment with // Math.random() to your main kernel function.
// Math.random()
Note: I have used gpu-browser.js from /dist.
If
Math.random
is in a function added bykernel.addFunction
,kernel.setFunctions
orgpu.addFunction
then the plugin is not includes in the shader source.Workaround: add a comment with
// Math.random()
to your main kernel function.