Physics. A tetrahedral mesh of point masses is relaxed with XPBD — position‑based dynamics with per‑constraint compliance. Edge springs keep the shape, tetrahedral volume constraints preserve bulk, and a global volume term resists compression. The rind is stiffer than the flesh. A fixed timestep with bounded substeps keeps it stable; damping and ground friction let it settle.
Rendering. Native WebGPU + WGSL. The jelly is a thin shell; the shader estimates thickness from the surface normal, then applies Beer–Lambert absorption, refraction, fresnel and glossy highlights, plus a few internal bubbles and a soft contact shadow.
This study needs a WebGPU‑capable browser. Try the latest Chrome, Edge or Opera on a supported device, then reload.