threejs-material-systems
Installation
SKILL.md
Three.js Material Systems
When to Use
Use this skill when:
- Setting up materials for 3D objects
- Optimizing material performance on mobile
- Creating custom shader materials
- Managing material memory and reuse
- Implementing PBR workflows
Core Principles
- Material Reuse: Share materials across meshes to reduce draw calls
- Mobile-First Materials: Use simpler materials (MeshLambert/MeshPhong) on mobile
- Texture Efficiency: Minimize texture count and use atlases
- Shader Optimization: Write efficient shaders, avoid branching
- Proper Disposal: Dispose materials and textures to prevent leaks
- Parameter Updates: Use
material.needsUpdatesparingly