threejs-syntax-materials

Configure Three.js materials with correct color spaces and texture maps.

11|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/OpenAEC-Foundation/Three.js-Claude-Skill-Package --skill threejs-syntax-materials
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: threejs-syntax-materials
Source: https://github.com/OpenAEC-Foundation/Three.js-Claude-Skill-Package/tree/main/skills/source/threejs-syntax/threejs-syntax-materials
Command: npx skills add https://github.com/OpenAEC-Foundation/Three.js-Claude-Skill-Package --skill threejs-syntax-materials

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers correctly configure Three.js materials, ensuring proper color spaces, texture maps, and PBR workflows to avoid common rendering mistakes.

Core Features & Use Cases

  • Understand when to use MeshStandardMaterial vs MeshPhysicalMaterial and how to apply diffuse, normal, roughness, metalness, and AO maps.
  • Learn texture color space handling, wrapping, and mipmapping rules to achieve accurate, high-fidelity renders.
  • Real-world scenarios include architectural walls, metal components, glass-like transmissive materials, and toon shading with gradient maps.

Quick Start

Create a MeshStandardMaterial with diffuse SRGB texture and normal/roughness/ao maps, then assign it to a mesh.

Frequently Asked Questions about threejs-syntax-materials

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

FAQPage Schema
How do I configure Three.js PBR materials with correct color spaces?▼

To configure Three.js PBR materials correctly, apply diffuse textures in SRGB color space while keeping data maps like normal or roughness in linear space. This ensures accurate lighting and high-fidelity rendering for metal surfaces and architectural walls.

When should I use MeshStandardMaterial vs MeshPhysicalMaterial in Three.js?▼

Use MeshStandardMaterial for basic PBR workflows involving diffuse, normal, and roughness maps. Choose MeshPhysicalMaterial when you need advanced properties like transmission for glass-like objects, sheen, or anisotropy for complex real-time scenes.

Why do my Three.js textures look washed out or incorrectly lit?▼

Textures appear washed out or incorrectly lit when color space rules are misapplied. You must set diffuse color maps to SRGB color space and keep non-color data maps like AO and roughness in linear space to maintain accurate rendering.

How do I set up texture wrapping and mipmapping for Three.js materials?▼

To set up texture wrapping and mipmapping for Three.js materials, configure the wrapping parameters on the texture object and ensure correct color space assignment. Proper mipmapping rules prevent visual artifacts across distances in real-time scenes.

Can I create translucent and toon shaded objects using Three.js materials?▼

Yes, you can create translucent objects using MeshPhysicalMaterial with transmission properties, and achieve toon shading by applying gradient maps. These advanced material properties are fully supported for Three.js r160 and newer versions.

Do I need to specify color space for every map in a Three.js PBR workflow?▼

Yes, you must specify color space for every map in a Three.js PBR workflow. Enforce color space rules by assigning SRGB to diffuse textures while leaving linear space for normal, roughness, metalness, and AO maps to avoid common rendering mistakes.