threejs-materials
Skill by CloudAI-X
Guides an AI assistant through choosing and configuring three.js materials, from unlit and PBR to toon, point, line and WebGPU node materials. It is for developers styling meshes or tuning material behavior in three.js r186.
Install threejs-materials
Built from the published package, never by AI.
git clone --depth 1 https://github.com/CloudAI-X/threejs-skills /tmp/threejs-skills && mkdir -p ~/.claude/skills && cp -r /tmp/threejs-skills/skills/threejs-materials ~/.claude/skills/threejs-materialsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/CloudAI-X/threejs-skills /tmp/threejs-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/threejs-skills/skills/threejs-materials ~/.gemini/antigravity-cli/skills/threejs-materialsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This is an agent skill with a SKILL.md file for three.js materials. It targets three.js r186, uses WebGLRenderer in its examples, and covers a WebGPU node-material and TSL section that uses WebGPURenderer. The skill explains the material types in a summary table, including MeshBasicMaterial, MeshLambertMaterial, MeshPhongMaterial, MeshStandardMaterial, MeshPhysicalMaterial, MeshToonMaterial, PointsMaterial, and line materials. It shows code for each, along with notes on color spaces, UV channels for aoMap and lightMap, and custom ShaderMaterial use.
The skill is aimed at developers who build three.js scenes and need to pick a material or adjust its properties. It notes which settings need lights, which maps need sRGB color data, and where features such as thick lines or custom GLSL are limited to certain renderers.
Written from the project's SKILL.md and checked against it.
What it can do
- Material type selectionSummarizes which three.js material fits unlit, diffuse, specular, PBR, toon and point or line use cases.
- PBR and physical materialsShows MeshStandardMaterial and MeshPhysicalMaterial setup, including clearcoat, transmission, sheen and iridescence.
- Texture color space rulesExplains which textures need sRGB color space and which scalar maps keep the default.
- UV channel setupDescribes how texture.channel selects uv, uv1, uv2 or uv3 for aoMap and lightMap.
- Line and point rendering notesCovers point size attenuation, dashed line setup, and Line2 for thick lines under WebGLRenderer.
- Custom ShaderMaterial exampleGives a WebGLRenderer-only GLSL example with time uniforms and a timer.
What you need
- three.js r186 or a compatible setup
- WebGLRenderer for most examples
- WebGPURenderer for the WebGPU and TSL section
Try asking
- Which three.js material should I use for a glossy car paint look?
- Show me how to make a cel-shaded mesh with MeshToonMaterial.
- Why does my texture look washed out in three.js and how do I fix the color space?
Good to know
- ShaderMaterial, RawShaderMaterial and onBeforeCompile have no WebGPURenderer path.
- WebGL and WebGPU always draw line primitives 1 px wide; linewidth only affects the SVGRenderer.
- Dashed lines need computeLineDistances() or they draw solid.
- Thick lines under WebGLRenderer require Line2 and LineMaterial from three/addons.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/threejs-materials/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md26 KB
Alternatives to threejs-materials
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
threejs-materials: common questions
Which three.js material should I start with for realistic surfaces?
The source says MeshStandardMaterial is the default choice for lit, realistic surfaces, and recommends it for realistic results. MeshPhysicalMaterial extends it with extra layer and volume features.
Why do my lit materials render black?
The source says lit materials render black without lights, so the example adds a HemisphereLight and a DirectionalLight.
Does ShaderMaterial work with WebGPURenderer?
No. The source says ShaderMaterial, RawShaderMaterial and onBeforeCompile have no WebGPURenderer path, and recommends node materials and TSL there.
How do I install threejs-materials?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is threejs-materials free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is threejs-materials safe to use?
It scores 85 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to threejs-materials?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
