Skip to content

Physically based materials, lights, shadows, and HDR environment lighting for three.js r187 scenes.

CCM score
57 of 100
skills.sh installs
14.9K
GitHub stars
12.1K
last updated
Nov 29, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers standard, physical, and unlit materials, lights, shadow setup, IBL from HDR files, and tone mapping
  • Includes patterns for PBR texture sets, fitted shadow cameras, and a Playwright-ready lighting state probe
  • Enforces sRGB tagging for colour maps and linear data maps, and ends post-processing chains with OutputPass
  • Designed for scenes that render black, washed out, or missing shadows, and points renderer, loading, and shader work to other skills

Install

$ npx -y skills add gamedev-skills/awesome-gamedev-agent-skills --skill threejs-materials-lighting -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

three.js materials and lighting

Makes three.js surfaces read correctly: the right material, a light rig, working shadows and image-based lighting (IBL). Patterns target r187. Lighting has been physically based since r155, so intensities from older tutorials look far too dark.

When to use

  • A mesh renders black or flat, a material choice is needed, lights or shadows are being added, or environment reflections (IBL) are being set up.
  • Code constructs MeshStandardMaterial, DirectionalLight and similar, or sets renderer.shadowMap.enabled, scene.environment or renderer.toneMapping.
  • Not for the renderer, camera and loop (threejs-scene-setup), loading models (threejs-gltf-loading), or custom GLSL and node shaders (shader-programming for the technique).

Workflow

Details

Repository
github.com/gamedev-skills/awesome-gamedev-agent-skills
Categories
3D, CAD & Modeling, Frontend & UI Code
First seen
Nov 29, 2026

More from gamedev-skills/awesome-gamedev-agent-skills

All 69

Similar to Threejs Materials Lighting

More 3D, CAD & Modeling