threejs-materials

Select and configure Three.js materials for real-time 3D rendering.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/norrbacka/threejs_codex_base --skill threejs-materials-norrbacka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-materials
Source: https://github.com/norrbacka/threejs_codex_base/tree/main/.codex/skills/threejs-materials
Command: npx skills add https://github.com/norrbacka/threejs_codex_base --skill threejs-materials-norrbacka

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you choose, configure, and debug Three.js materials so 3D objects render with the intended surface appearance, lighting response, and shader behavior without trial-and-error guesswork.

Core Features & Use Cases

  • Material Selection: Pick the right material type for unlit UI, matte objects, shiny plastics, realistic PBR surfaces, glass, toon shading, or custom shaders.
  • Surface Tuning: Adjust color, roughness, metalness, transparency, emissive behavior, environment reflections, and texture maps to match art direction.
  • Shader Extension: Extend built-in materials or build custom ShaderMaterial and RawShaderMaterial setups for advanced visual effects.
  • Use Case: When a scene looks too flat, overly glossy, or physically incorrect, use this Skill to identify the material mismatch and correct the parameters.

Quick Start

Use the threejs-materials skill to choose the best material for my object and tune its lighting, textures, and PBR settings.

Frequently Asked Questions about threejs-materials

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

FAQPage Schema
How do I choose the right Three.js material for my 3D object?

To choose the right Three.js material, evaluate your surface needs: use basic materials for unlit UI, standard materials for PBR, and physical materials for glass or clearcoat reflections.

Why does my Three.js PBR material look too flat or overly glossy?

PBR materials appear flat or overly glossy when roughness, metalness, or environment reflection parameters are mismatched. Correcting these texture maps and lighting responses fixes the physical surface appearance.

Can I extend built-in Three.js materials with custom shaders?

You can extend built-in Three.js materials with custom shaders by utilizing ShaderMaterial or RawShaderMaterial setups. This enables advanced visual effects while preserving existing import conventions and project structure.

Does tuning Three.js materials affect real-time rendering performance?

Tuning Three.js materials impacts performance. Complex PBR settings, transparency, and custom shaders consume GPU resources, requiring correct handling of cloning, updates, and performance tradeoffs for real-time rendering.

How do I configure environment reflections and texture mapping in Three.js?

Configure environment reflections and texture mapping in Three.js by assigning environment maps and texture coordinates to your material. This achieves accurate lighting response and surface reflections across meshes and point clouds.