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

Open in new tab ↗ · basicsformationstrigonometry

///////////////////////////////////////////////////////////
// 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));
}

^cam{
   fill = (0.2);
   light = (0.9);
   bg = (0);
}