volumeNoiseAt
Smooth signed noise at a 3D point, roughly −1 to 1.
volumeNoiseAt(p: Expr): Expr
Import materials from shaders/std and use materials.volumeNoiseAt.
For anything sampled through a body rather than across its surface: gas, smoke, inclusions, density.
Parameters
| Name | Type | Notes |
|---|---|---|
p | Expr |
Example
const density = volumeNoiseAt(vec3(pos.member('x'), pos.member('y'), t))
See also
surfaceNoiseAt—surfaceNoiseat a 2D point you already hold.