original: Author : Stefan Gustavson (stefan.gustavson@liu.se)
https://github.com/ashima/webgl-noise/blob/master/src/classicnoise2D.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/classicnoise2d.js, line 1
Members
staticconstantcnoise String
Classic Perlin Noise
- Source:
- core/classicnoise2d.js, line 43
Example
import { cnoise } from 'points/classicnoise2d'; // wgsl string ${cnoise} let value = cnoise(uvr);
js
staticconstantpnoise String
Classic Perlin Noise, periodic variant
- Source:
- core/classicnoise2d.js, line 100
Example
import { pnoise } from 'points/classicnoise2d'; // wgsl string ${pnoise} let value = pnoise(uvr);
js