cbrt
Safely calculates the cube root of a value (³√x), correctly handling negative numbers. It's often used for 'ease-out' animation curves or to brighten the dark areas of an image.
Core Advantages
Its core advantage is safely solving the challenge of finding the cube root of negative numbers in shaders, encapsulating a complex workaround into a simple, readable node and preventing potential rendering errors.
Common Uses
Animation Easing (Ease-Out)
Color Correction & Tone Mapping
Procedural Geometry Deformation
Data Visualization
How to adjust
This node has no adjustable parameters; it applies a fixed cube root curve. For an input in the [0, 1] range, it dramatically 'stretches' the dark areas (the value grows rapidly from 0) while 'compressing' the bright areas (the value slowly approaches 1), creating a 'fast-start, slow-end' visual effect.
Code Examples
1// Convert a linear gradient into a curve with compressed highlights
2// The effect is 'stretching' the darks and 'compressing' the lights
3const brightenedGradient = cbrt( uv().x );