vector $n=unit(particleShape1.normal);
vector $p=particleShape1.position;
$n=rot($n,dnoise(0.5*$p),noise(0.5*$p+100));
particleShape1.normal=$n;
vector $v=particleShape1.velocity;
vector $u=unit($v);
float $m=mag($v);
vector $vn=dot($u,$n)*$n;
vector $vt=$u-$vn;
float $bias=0.25;
float $conserve=0.96;
particleShape1.velocity=$conserve*$m*unit($vn*$bias+$vt);

Loading more stuff…

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

Loading videos…