triNoise3D
Generates a unique, triangle-wave-based 3D procedural noise in real-time on the GPU, requiring no texture files, for creating complex, animatable organic patterns like fire, energy fields, or dynamic surfaces.
Core Advantages
It enables easily controllable, smooth animations via built-in `time` and `speed` parameters, and its unique triangle-wave algorithm produces patterns with linear or crystalline features, distinct from traditional cloud-like noise, offering a novel visual style for effects and art.
Common Uses
Mapping the noise value to a color gradient to simulate dynamic fire or magma
Combining with a fresnel effect to create sci-fi energy shields or force fields
As a dynamic mask for dissolve or corrosion effects to make objects disappear irregularly
How to adjust
Adjust via its three inputs: scaling the `position` input (e.g., `positionWorld.mul(value)`) changes the noise pattern's size and density; changing the `speed` input controls the animation's rate; the `time` input (usually `timerLocal()`) drives the animation's evolution.
Code Examples
1const noise = triNoise3D(
2 positionWorld.mul( 0.5 ), // Input coords, multiplied to scale up the pattern
3 float( 0.3 ), // Set the animation speed
4 timerLocal() // Use a timer to drive the animation
5);