A study in touch
Every fiber, a little possibility.Run your fingers through it. Leave a trace.
Drag to touch · Scroll to get closer · Right-drag to orbit
Under the surface
Each fiber is a tapered, curved ribbon generated in the vertex shader. A field of 6,144 guides holds the direction left by your hand; nearby fibers interpolate that field. Roots stay anchored to an ellipsoid while their tips bend.
With WebGPU, a compute pass advances a damped spring toward each guide’s remembered shape. WebGL 2 runs the same guide model on the CPU. Retention controls how much a stroke is remembered. Recovery erases that memory over time; zero leaves it ruffled until you reset it.
Shells and fins establish the speed / silhouette tradeoff. This close-up study instead uses explicit ribbons so individual tips can follow your stroke.
Informs the shifted, tangent-based dual highlights. This is an artistic approximation, not the full physical scattering model. Root occlusion and transmission are approximated; there are no inter-strand collisions or deep shadows.
GPU strand processing and guide / follower separation inform the architecture. This implementation uses its own compact spring field rather than TressFX’s strand solver.
Arrow keys brush across the specimen; Shift reverses the brush. Alt + arrows rotates. + / − zooms, R clears grooming, and 0 resets the view. On touch screens, choose Stroke, Ruffle, or Orbit before dragging. Higher strand counts and segment counts cost more GPU time.