original: Author : Stefan Gustavson (stefan.gustavson@liu.se)
https://github.com/ashima/webgl-noise/blob/master/src/cellular2D.glsl
These are wgsl functions, not js functions.
The function is enclosed in a js string constant,
to be appended into the code to reference it in the string shader.
- Source:
- core/cellular2d.js, line 1
Members
staticconstantcellular String
Cellular noise
- Source:
- core/cellular2d.js, line 27
Example
import { cellular } from 'points/cellular2d'; // wgsl string ${cellular} let value = cellular(uvr);
js