Volume Perlin

Volume Perlin

A GPU-generated 3D Perlin texture rendered as a colorful first-hit isosurface inside a raymarched box.

The 128 cubed density field is initialized once with texture-domain compute. Each frame intersects camera rays with the volume, advances by a user-controlled step count, and shades the first sample above the density threshold from its local gradient and position.

Credits: Ported from the three.js WebGPU Volume Perlin example (MIT)

Execution
Preview