Skip to main content
Annual billing

ThreeJS.net annual plans cost about 50% less than 12 monthly payments

Save

Liquid Chrome

Domain-warped displacement on a physical material

About this scene

A liquid-metal form that breathes: simplex noise, domain-warped for slow liquid folds, displaces a high-detail icosahedron in the vertex shader, and the normals are rebuilt per vertex so lighting follows the new surface. Reflections come from a hand-built light room baked into a PMREM environment.

How it is built

  1. 01

    Displace, then fix the normals

    Moving vertices without updating normals makes lighting look painted on. The shader samples the displacement at two nearby tangent points and rebuilds the normal from their cross product.

  2. 02

    Reflections tell the shape

    Chrome is only as good as what it reflects. A small scene of emissive strips (white key, lime rim, teal rim) is rendered into an environment map, which gives crisp highlights without loading an HDR file.

  3. 03

    Interaction through uniforms

    A ray from the pointer hits a bounding sphere; the hit point becomes a uniform that locally increases the displacement amplitude.

Questions

Why not a ShaderMaterial?
Patching MeshPhysicalMaterial keeps three.js lighting, clearcoat and iridescence, so only the displacement had to be written by hand.
Is it heavy?
About 80k triangles with the noise evaluated three times per vertex. It runs smoothly on integrated laptop GPUs; reduce the icosahedron detail for phones.

More examples