This browser has no WebGPU, so the sketch cannot run here. The program is below, and it runs in a current Chrome, Edge or Safari.
Surface Displace
visualize field data using a displaced surafce formation
///////////////////////////////////////////////////////////
// surface-displace
// visualize field data using a displaced surafce formation
///////////////////////////////////////////////////////////
&time = mlt(step, 0.1);
#A{
dim = (256,256,1);
run = sin( add( mlt(C, 3), &time));
}
~A{
dim = (256,256,1);
rot = (-HALF_PI, 0,0);
disp = (C.x, C.y, mlt(#A.x, 0.2));
}
{
= (0.2);
= (0.9);
= (0);
}