Most of these natural looking textures make use of a fractal turbulence function (TURB), which works by summing a random noise function (NOISE) at different frequencies and scales.
Pixel Magic contains both 2d and 3d versions of these functions. The 3D versions are useful for creating animated turbulence effects, such as moving clouds.
![]() |
Lightning | This is basically an inverted marble. |
![]() |
Marble | Passing the absolute value of TURB (which normally returns values in the range -1 thru 1) to SQRT causes sharp black "veins" to appear, which have the appearence of marble. |
![]() |
Tree Trunk | In this image a pattern of concentric rings is perturbed using the turbulence function, creating a wood-like pattern. |
![]() |
Water |