reciprocal
reciprocal
Calculates the reciprocal (1/x) of an input value, providing a semantically clear node for creating inverse relationships.
Core Advantages
Common Uses
Calculating inverse falloff (e.g., for point light intensity)
Creating distance-based non-linear spatial distortions (e.g., a black hole effect)
Converting between frequency and wavelength
How to adjust
Adjust the effect by changing its input value. For example, in a central glow effect controlled by `reciprocal(distance + epsilon)`, decreasing the value of `epsilon` will make the central glow brighter and sharper.
Code Examples
1// Add a small epsilon to the distance to avoid division by zero at the center
2const invertedDistance = reciprocal( distanceToCenter.add( 0.01 ) );