gpujs / gpujs/gpu.js

Random plugin not included in shader source.

Open
#774 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
15.5k
Forks
663
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.