valueNoise
Smooth noise 0–1 at a 2D point, softer and blockier than surfaceNoise.
valueNoise(x: Expr | number, y: Expr | number): Expr
Import materials from shaders/std and use materials.valueNoise.
Parameters
| Name | Type | Notes |
|---|---|---|
x | Expr | number | |
y | Expr | number |
Example
const wobble = sub(valueNoise(mul(x, 4), mul(y, 3)), 0.5)
See also
surfaceNoise— Smooth signed noise at a 2D point, roughly −1 to 1, with features about one unit wide.hashNoise— Random 0–1 per point, with no smoothness between neighbours.