Soft enough to tremble, stiff enough to hold a shape. It drinks light, swallows the knife behind it, and keeps the memory of every stroke.
The slice. A wedge cut from a melon: 32° half-angle, 1.62 inner radius, 0.58 thick. Every surface corner is rounded in plane (ρ = 0.17); the top and bottom edges are bevelled (0.13), so the wedge reads as cut candy rather than a sector of a circle.
The flesh. The wedge is a stack of four materials from the outside in — dark green skin
with irregular stripes, a pale cream band, translucent red flesh, and black teardrop seeds arranged
in arcs. A handful of air bubbles are suspended through the flesh. Each vertex of the render mesh
carries a kind index, so one draw call repaints the whole slab.
The body. The wedge is a tetrahedral soft body: a jittered lattice inside the shape, Delaunay-triangulated, driven by XPBD. Each tet solves a co-rotational shape match (mass-weighted covariance, Müller quaternion extraction, uniform stiffness fraction) plus a per-tet volume constraint, so it stays near-incompressible without ever inverting a matrix. Edge relative-velocity damping is the "internal damping" slider; firmness maps to the compliance of the shape match on a log scale. Floor contact has static and kinetic friction, a little air drag, a settle-damping that kicks in when motion falls below threshold, a speed cap, and a NaN guard that quietly rebuilds.
The knife. A nakiri built procedurally: rectangular blade, straight edge with a slight lift and a rounded nose, a thin ground bevel, a ~0.03 spine, sharp creases, a polished bolster and an oval walnut handle with three rivets. It is posed rigidly on the CPU and drawn in the scene pass, so the part buried in the jelly is seen refracted through it — it casts, but never enters the AO height map.
The cut. A stroke is read back onto the surface it was drawn over; that defines a vertical blade plane. The plane is intersected with each crossed piece's best-fit rigid frame, clipped into two halves offset by ρ so the rebuilt outlines meet exactly, slivers under a threshold are rejected, and the piece count is capped at 14. New meshes are cached per piece, and state transfers across a rebuild: the new vertices are embedded in the old tets and take over interpolated positions and velocities. The world is one simulation, one render mesh, and a piece is its own soft body you can grab, stretch, and cut again.
The cut animation. ~1.1 s, and it respects ¼ speed and pause. Align, press the edge 0.13 into the flesh to make a groove the jelly must give before it breaks through, then swap the world mid-stride so there is no hitch. A wedge collider then eases the two new faces apart a few millimetres per substep, holds the lips at the break-through depth, and finally lifts away, releasing them to spring back with a jiggle.
The render. A scene pass (floor with an analytic contact-AO blob tinted by the flesh colour, procedural softboxes, the knife) goes into a colour buffer; a depth-only pass from the key light goes into a depth texture with a packed normal. The refraction pass is per pixel: find the front surface, refract the ray, march the back, absorb the world behind the slab Beer–Lambert-style with a capped thickness so the seeds never halo, add subsurface scatter and a glow toward the key light, then finish with Fresnel and GGX highlights against a procedural softbox environment. ×4 supersampled, HDR, PBR-neutral tone mapped, dithered.
Melon / Jelly. is a physically simulated gummy wedge — a tetrahedral soft body solved with XPBD, cut into up to fourteen pieces by a procedural nakiri whose blade plane is derived from your stroke on the canvas, all rendered with a refracting translucent-solid shader in WebGPU and WGSL. The refraction pass is per-pixel: it finds the front surface, refracts the ray, marches to the back, and absorbs the world behind the slab. That is not something a canvas 2D fallback can reproduce.
navigator.gpu present and requestAdapter() returning an adapter with
GPUDeviceType.webgpu, plus shaders that compile under WebGL 2 / WGSL 1.00.
On Apple silicon this is Metal under WebGPU; on other platforms it is a discrete or
integrated GPU with WebGPU enabled in the browser flags.
--enable-webgpu). Then reload this page.