Procedural texture generator (example and wishes)

So, these are all variations on a theme. What we’re doing here is just repeating the same function on the base uv coordinate over and over and getting funky marbely patterns through that.

Malachite:

$ratiov = $h/$w;
$uv = [$u, $v*$ratiov, 0];

$uv = $uv+vfbm($uv);
$uv = $uv+vfbm($uv);
$uv = $uv+vfbm($uv);
$uv = $uv+vfbm($uv);

$c = fbm($uv);

$color = ccurve($c,0,[0,0,0],4,0.567308,[0,0.666667,0.498039],4,1,[0.235294,1,0.45098],4);
$color

This one’s kinda bizarely metalic:

$ratiov = $h/$w;
$uv = [$u, $v*$ratiov, 0];

$uv = $uv+vnoise($uv*5);
$uv = $uv+vnoise($uv*5);
$c = noise($uv*5);

$color = ccurve($c,0,[0,0,0],4,1,[1,1,1],4);
$color

One based on turbulence.

$ratiov = $h/$w;
$uv = [$u, $v*$ratiov, 0];

$uv = vturbulence($uv*2);
$c = vturbulence($uv*3);

$color = ccurve($c,0,[0,0,0],4,1,[1,1,1],4);
$color

Don’t remember why I saved this one…

$ratiov = $h/$w;
$uv = [$u, $v*$ratiov, 0];

$uv = vfbm($uv);
$uv = $uv+vfbm($uv);
$c = voronoi($uv, 2);

$color = ccurve($c,0,[0,0,0],4,1,[1,1,1],4);
$color

One with very bright lines:

$ratiov = $h/$w;
$uv = [$u, $v*$ratiov, 0];
$size = 3;

$uv = vturbulence($uv*$size);
$c = voronoi($uv*$size, 2);

$color = ccurve($c,0,[0,0,0],4,1,[1,1,1],4);
$color