# Three.js materials and lighting

> Fixes three.js colour, tone mapping and environment lighting, so your 3D models stop looking washed out or black.

- Page: https://youraiskill.com/skill/nirholas-pbr-materials-and-lighting
- What it does: Make three.js PBR materials look right: color management (sRGB output, which textures are sRGB and which are linear), tone mapping (AgX, Neutral, ACES Filmic) and exposure, image-based lighting from RoomEnvironment or an HDR file through PMREMGenerator, and how roughness and metalness actually respond. Use when a model looks washed out, too dark, flat, plasticky, over-saturated or black; when colors do not match the reference or Blender; when metal looks black; or when the user asks how to light a scene, add an HDRI or environment map, or pick a tone mapper.
- Niches: frontend, games
- Licence: Apache-2.0
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions and reference files only (1 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
