neg
The value with its sign flipped.
neg(a: Val): Expr
Import math from shaders/std and use math.neg.
Parameters
| Name | Type | Notes |
|---|---|---|
a | Val |
Example
const falloff = exp(neg(mul(dist, 4)))
See also
Used by
Prism, ReactionDiffusion, StudioBackground, Voxels, Waveform