Three.js Material Gallery example

Compare common Three.js materials under the same lights and camera.

Displaying several material types together makes their response to color, roughness, metalness, and lighting easy to compare.

Available runtime values: THREE, scene, camera, controls, renderer, size, add(), setBackground(), setCamera(), onFrame().