float $bias=0.25;
float $concerve=0.96;
float $bend=0.1;
float $rot=0.5;

float $id=particleShape1.particleId;
vector $n=unit(particleShape1.normal);
vector $p=particleShape1.position;
$n=rot($n,dnoise(0.5*$p),$rot*noise(0.5*$p+100));

vector $v=particleShape1.velocity;
vector $u=unit($v);
float $m=mag($v);
vector $vn=dot($u,$n)*$n;
vector $vt=$u-$vn;
vector $v=$concerve*$m*unit($vn*$bias+$vt);

particleShape1.velocity=$v;

$n-=$v*$bend*noise($id,808);
particleShape1.normal=$n;

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…