LookLightweight
Matcap
Lighting stored in a picture of a sphere.
Lighting stored in a picture of a sphere. Any shape shaded with it looks like that sphere: clay, chrome, wax. No lights needed, and the highlight never moves when the object turns.
- Breaks when
- fixed lighting ignores the scene’s own lights
- Also called
- MeshMatcapMaterial, material capture
Prompts
Sculpt viewer
Three.js MeshMatcapMaterial on a high-poly scan (decimated to 200k triangles), matcap PNG chosen from a set of 4 (clay, chrome, wax, red plastic) via keys 1–4, with a 200 ms cross-fade between two MeshMatcapMaterials. OrbitControls with damping. Draw the current matcap image in the corner as an HTML <img> so the trick is visible.
Procedural matcap
Generate the matcap in a fragment shader instead of loading an image: a sphere gradient with two highlights and a dark rim, then apply it to any mesh via view-space normals in a ShaderMaterial. Add uniforms for the base color and highlight positions and explain why the shading looks the same from every angle.
Matcap plus real shadows
Combine MeshMatcapMaterial with contact shadows: the object uses the matcap, the floor uses a ShadowMaterial fed by one light that only exists for the shadow map. Explain the seam between camera-locked shading and world-locked shadows and how to keep it plausible.
Related
Resources · 1
- three.js example: matcapmrdoobsite · code · demoJun 15, 2026