OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add cloudai-x/threejs-skills --skill threejs-materials
Three.js materials - PBR, basic, phong, shader materials, material properties. Use when styling meshes, working with textures, creating custom shaders, or optimizing material performance.
npx skills add cloudai-x/threejs-skills --skill threejs-materials
| Material | Use Case | Lighting |
|---|---|---|
| MeshBasicMaterial | Unlit, flat colors, wireframes | No |
| MeshLambertMaterial | Matte surfaces, performance | Yes (diffuse only) |
| MeshPhongMaterial | Shiny surfaces, specular highlights | Yes |
| MeshStandardMaterial | PBR, realistic materials | Yes (PBR) |
| MeshPhysicalMaterial | Advanced PBR, clearcoat, transmission | Yes (PBR+) |
| MeshToonMaterial | Cel-shaded, cartoon look | Yes (toon) |
| MeshNormalMaterial | Debug normals | No |
| MeshDepthMaterial | Depth visualization | No |
| ShaderMaterial | Custom GLSL shaders | Custom |
| RawShaderMaterial | Full shader control | Custom |
No lighting calculations. Fast, always visible.
Diffuse-only lighting. Fast, no specular highlights.
Specular highlights. Good for shiny, plastic-like surfaces.
Physically-based rendering. Recommended for realistic results.
Extends MeshStandardMaterial with advanced features.
Cel-shaded cartoon look.
Visualize surface normals. Useful for debugging.
Render depth values. Used for shadow maps, DOF effects.
For point clouds.
Custom GLSL shaders with Three.js uniforms.
Full control - no built-in uniforms/attributes.
All materials share these base properties:
threejs-textures - Texture loading and configurationthreejs-shaders - Custom shader developmentthreejs-lighting - Light interaction with materials