log
The natural logarithm of a value.
log(x: Val): Expr
Import math from shaders/std and use math.log.
Parameters
| Name | Type | Notes |
|---|---|---|
x | Val |
Example
const octave = log(max(scale, 1))
See also
exp— e raised to the value.
The natural logarithm of a value.
log(x: Val): Expr
Import math from shaders/std and use math.log.
| Name | Type | Notes |
|---|---|---|
x | Val |
const octave = log(max(scale, 1))
exp — e raised to the value.