threejs-lighting covers how to light a three.js scene. It tabulates the light types with their shadow support, intensity units and notes, from ambient and hemisphere lights to directional, point, spot and rect area lights, and explains that point and spot intensity is measured in candela with inverse-square falloff.
It also covers shadow maps, fixing shadow acne, image-based lighting from HDR environments, light probes and the cost of lighting, with a WebGPU and TSL section.
What You Get
- A quick start with a directional light, a floor, a box and shadows enabled in all three places
- A table of light types showing shadow support, intensity units and notes
- Guidance on candela-based intensity and falloff for point and spot lights
- Shadow map tuning and acne fixes
- HDR environment and light probe setup, plus a WebGPU and TSL section
Common Use Cases
- Setting up a sun-like light with shadows
- Fixing striped or missing shadows
- Lighting a model with an HDR environment map
- Choosing between point, spot and area lights
- Keeping lighting cost low on mobile
What Makes It Unique
It states the intensity unit of every light type, which is a common source of scenes that look too dark or too bright after a version change. It names the newer SunLight addon with cascaded shadows. It is one of thirteen skills pinned to r186.
Under The Hood
The skill is a single SKILL.md of explanation, a table and JavaScript examples, with no scripts, and it tells the agent to run no commands. The agent reads it and writes three.js code into your project. It fetches nothing and writes no files itself.