exp2

2 raised to the value.

exp2(x: Val): Expr

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

Parameters

NameTypeNotes
xVal

Example

const octaveScale = exp2(octave)

See also

  • exp — e raised to the value.

Used by

Voxels