sinc
Generates a complex waveform with 'impact-decay' characteristics, ideal for simulating ripples, shockwaves, or bounce animation curves, featuring a main peak followed by a series of decaying oscillations.
Core Advantages
It generates an ideal ripple or bounce animation waveform with a single, concise function call, eliminating the need to manually combine multiple math nodes. The `k` parameter also offers intuitive artistic control over the number of ripples or bounces.
Common Uses
Procedurally generating ripple or shockwave effects using distance from a center point as input
As an advanced easing function to simulate the animation curve of an object bouncing to a stop
Generating complex patterns with multiple concentric rings, like sonic booms or wave interference
How to adjust
Primarily adjusted via the `k` parameter, which controls the waveform's visual complexity. A larger `k` value creates more frequent and denser ripples or bounces within the [0, 1] input range. Changing the `x` input to be the distance from a point can create concentric circle effects.
Code Examples
1// Use a 0-1 value (like uv().x) as the input 'x'
2// Use the 'k' parameter to control the number of oscillations
3const k = float( 8.0 );
4const sincNode = sinc( uv().x, k );
5
6// Take the absolute value to turn the wave into a visual color/mask
7const visualWave = sincNode.abs();