min
The smaller of two values.
min(a: Val, b: Val): Expr
Import math from shaders/std and use math.min.
Parameters
| Name | Type | Notes |
|---|---|---|
a | Val | |
b | Val |
Example
const capped = min(brightness, 1)
See also
Used by
CarbonFiber, Chrome, Goo, Heatmap, Hologram, ReactionDiffusion, Sparkle