threejs-materials

Apply Three.js materials for 3D mesh styling with PBR and custom shaders.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/tc9011/my-skills --skill threejs-materials-tc9011
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-materials
Source: https://github.com/tc9011/my-skills/tree/main/skills/threejs-materials
Command: npx skills add https://github.com/tc9011/my-skills --skill threejs-materials-tc9011

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you understand and effectively use the diverse range of materials available in Three.js for styling 3D objects, enabling you to create visually rich and realistic scenes.

Core Features & Use Cases

  • Material Variety: Covers basic, PBR, toon, depth, normal, and shader materials.
  • Property Deep Dive: Explains key properties like color, roughness, metalness, and texture mapping.
  • Custom Shaders: Provides examples for ShaderMaterial and RawShaderMaterial.
  • Use Case: Apply realistic car paint finishes, create glass effects, or implement custom visual styles for your 3D models.

Quick Start

Use the threejs-materials skill to create a PBR material with a green color and 50% roughness.

Frequently Asked Questions about threejs-materials

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use Three.js materials for 3D mesh styling?

Three.js materials enable 3D mesh styling through basic, PBR, toon, and normal materials. You apply properties like color, roughness, and metalness, alongside texture mapping and environment mapping, to achieve realistic rendering.

What is the difference between PBR and basic materials in Three.js?

PBR materials simulate realistic light interactions using roughness and metalness properties, while basic materials apply simple color or texture mapping without advanced lighting calculations for faster rendering.

Can I write custom shaders with ShaderMaterial in Three.js?

Yes, you can write custom shaders in Three.js using ShaderMaterial and RawShaderMaterial. These allow you to implement custom visual styles and effects for 3D models, extending beyond the built-in material options.

How do I create a realistic car paint or glass effect in WebGL?

To create realistic car paint or glass effects in WebGL, configure Three.js PBR materials with specific roughness, metalness, and environment mapping properties to accurately simulate surface reflections and light refraction.

What are the best ways to optimize Three.js material performance?

Optimize Three.js material performance by selecting less complex material types where possible, reusing material instances, and carefully managing texture application and environment mapping to reduce WebGL rendering overhead.