Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Three.js materials and lighting

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

Claude's review

8/10 Specific three.js colour, tone mapping and image based lighting guidance with working examples and a symptom list.

We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.

In detail

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.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: pbr-materials-and-lighting
description: >-
  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.
when_to_use: Setting up any lit three.js scene with MeshStandardMaterial or MeshPhysicalMaterial, or debugging why one looks wrong.
license: Apache-2.0
metadata:
  author: three.ws
  short-description: Color management, tone mapping, IBL and PBR parameters that look right
---

# PBR materials and lighting in three.js

Targets three.js r187 (`three@0.187.0`). Every runnable block is executed in Chromium before
this plugin ships.

Most "my model looks wrong" reports come from four settings, in this order of frequency:

1. **No environment.** PBR materials reflect their surroundings. With only a
   `DirectionalLight`, metal has nothing to reflect and renders black, and everything looks
   flat. Set `scene.environment`.
2. **A color texture tagged as linear.** Base color and emissive maps are sRGB. Normal,
   roughness, metalness and AO maps are linear data. `GLTFLoader` tags them for you; textures
   you load yourself must be tagged by hand.
3. **No tone mapping.** Lit scenes produce values above 1.0. Without a tone mapper they clip
   to white. `ACESFilmicToneMapping`, `AgXToneMapping` and `NeutralToneMapping` roll them off.
4. **Exposure left at the default** after switching tone mapper or environment.

Color management is on by default since r152 (`THREE.ColorManagement.enabled === true`) and
`renderer.outputColorSpace` defaults to `THREE.SRGBColorSpace`. Leave both alone. The old
names were `renderer.outputEncoding = THREE.sRGBEncoding` and `texture.encoding`; both were
removed in r162. `renderer.useLegacyLights` (physically incorrect light units) was removed in
r165, so intensities are physical: a `DirectionalLight` intensity is in lux-like units and a
`PointLight` is in candela with real distance falloff.

## 1. A correct lit scene, and how roughness and metalness respond

The grid below sweeps roughness left to right and metalness bottom to top under a
`RoomEnvironment`. Use it to calibrate expectations before blaming a model.

...

From nirholas's repository, Apache-2.0 licence.

Related skills

  • Checked

    TinyBase app builder

    Scaffolds and extends local first JavaScript apps with TinyBase, including schemas, persistence and sync.

    by tinyplex 5.2k
    7/101 credit
  • Checked

    ComfyUI custom node UI

    Adds widgets, sidebar tabs, commands and dialogs to ComfyUI custom nodes, so your node feels built in.

    by jtydhr88 325
    8/101 credit
  • Checked

    Scrolling menu upgrade

    Finds outdated react-horizontal-scrolling-menu code and rewrites it for version 8 so the menu works again.

    by asmyshlyaev177 789
    7/101 credit
  • Checked

    Scroll Menu Testing and SSR

    Gets react-horizontal-scrolling-menu working in Next.js and tested in Jest and Playwright without flicker.

    by asmyshlyaev177 789
    7/101 credit
  • Checked

    Screenshot to React code

    Rebuilds a screenshot or mockup as React, TypeScript and Tailwind code that closely matches the design.

    by buildfastwithai 792
    7/101 credit
  • Checked

    Map location picker

    Adds a map pin picker to a web form, so users can choose and submit one exact spot like a delivery address.

    by cyphercodes 84
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added