threejs-materials helps an agent pick and tune the right three.js material. It tabulates the material types with their use case and lighting model, including basic, Lambert, Phong, standard and physical PBR, toon, matcap, shadow, points and line materials, and ShaderMaterial for custom GLSL.
It also covers shared properties such as blending and stencil, how materials respond to environments, and the node-material and TSL equivalents under WebGPU.
What You Get
- A quick start with MeshStandardMaterial, roughness and metalness
- A table of material types, use cases and lighting models
- Notes on color space for color textures versus data textures
- Coverage of blending, stencil and other shared material properties
- The WebGPU node-material and TSL equivalents
Common Use Cases
- Choosing between standard, physical and toon materials
- Making a mesh look like metal, plastic or glass
- Using matcap for a lit look with no lights
- Showing only shadows on a transparent ground plane
- Moving a material setup to WebGPU node materials
What Makes It Unique
A single table covers every built-in material, including less obvious ones such as ShadowMaterial and MeshMatcapMaterial, and it states which ones need lights. It also covers the node-material path that the three.js docs now recommend for custom materials on WebGPU. It is one of thirteen skills pinned to r186.
Under The Hood
The skill is a single SKILL.md of explanation, a table and JavaScript examples, with no scripts, and it tells the agent to run no commands. The agent reads it and writes three.js code into your project. It fetches nothing and writes no files itself.