log

The natural logarithm of a value.

log(x: Val): Expr

Import math from shaders/std and use math.log.

Parameters

NameTypeNotes
xVal

Example

const octave = log(max(scale, 1))

See also

  • exp — e raised to the value.