Three.js lighting: light types, shadows, and IBL guide
Set up Three.js lights, configure shadows, and add environment lighting with a practical reference
- What
- Set up Three.js lights, configure shadows, and add environment lighting with a practical reference
- Cost
- Free
- Needs
- a working Three.js scene; no license declared in the source repo — read it yourself before reusing its content
- Install
- Copy the installer prompt below into your Muse — your agent does the rest.
Curated by Skill Harbor — a short pointer to @cloudai-x's Three.js lighting reference: light types compared (ambient, hemisphere, directional, point, spot, RectAreaLight), shadow setup with bias tuning and optimization tips, light helpers, image-based environment lighting (HDR/CubeTexture, PMREM), light probes, ready-made lighting setups (three-point, outdoor daylight, indoor studio), and light animation patterns. Honest caveats: no license declared in the repository — license unknown, so this is a short fiche linking to the source, without reusing its content; assumes a working Three.js scene as a starting point. Skill Harbor never reviews the code, review it yourself before use. Discovered via skills.sh.
Version:
Quick answer
Three.js lighting is a free Muse skill, a short pointer to the Three.js lighting reference: light types compared, shadow setup with bias tuning and optimization tips, light helpers, image-based environment lighting, light probes, ready-made lighting setups, and light animation patterns. It assumes a working Three.js scene as a starting point.
Install
Copy the install package below, then paste it into Muse🧪 Install ran in our test sandbox · Nov 11, 2026📌 Pinned version: commit 0e18186Step 0, before installing anything: read this install prompt, summarize in a few lines what this build does and what this lookup involves, then ask me to confirm before you proceed. Prerequisites: a working Three.js scene; no license declared in the source repo — read it yourself before reusing its content Look up "Three.js lighting: light types, shadows, and IBL guide" for me — reference lookup only, the same short-pointer form as the previous version of this prompt. It is @cloudai-x's threejs-lighting reference (SKILL.md alone, no companion files): light types and physical units, shadow maps, HDR environment lighting (IBL), light probes and lighting performance, for three.js r186, on WebGL or with WebGPU and TSL. Fetch the SKILL.md from the source repository into a temporary folder, verify it against the fingerprint below, review it for anything suspicious, and report in two or three sentences what the lighting reference covers (light types and units, shadows, helpers, environment lighting and probes, common setups, WebGPU and TSL) so I can consult it in my own project. Do not copy the guide's content into my project — this is a reference lookup only. Repository: https://raw.githubusercontent.com/cloudai-x/threejs-skills/0e181866f095b5f06d005133876e926515390d95/skills/threejs-lighting/SKILL.md Pinned version: install the code at commit 0e181866f095b5f06d005133876e926515390d95 exactly (Skill Harbor tested this version). Do not substitute a newer version. If this commit is unreachable, stop and tell me. [FINGERPRINTS] SKILL.md at the pinned commit: SHA-256 f12faf79625a7f42952124a5456d338e8399a65e16326c1a6a3239aa8e5ce489, 23,467 bytes (23,412 characters). If the fetched file does not match, it changed since the review: stop, tell me what you found and let me decide. Updated October 19, 2026: Skill Harbor regenerated this lookup prompt from the current upstream file (SKILL.md nearly doubled, from 12,027 to 23,412 characters). The reference now targets three.js r186 explicitly — the examples use WebGLRenderer, with a dedicated WebGPU and TSL section for WebGPURenderer — and it is reorganized and expanded rather than merely edited. New or substantially rewritten coverage: a Light Types and Units table with physical units (PointLight and SpotLight intensity is candela with inverse-square falloff, decay 2 — useful values run to the hundreds; light.power sets lumens; RectAreaLight intensity is nits and only lights MeshStandardMaterial and MeshPhysicalMaterial; directional, ambient and hemisphere intensities are unitless multipliers; legacy light units no longer exist — neither useLegacyLights nor physicallyCorrectLights does anything); SunLight, the addon directional light with automatic cascaded shadows fitted to the view; merged ambient and hemisphere coverage; shadows reworked (tuning a directional shadow, point and spot shadow cameras derived from the light's own settings — a spot shadow's fov comes from angle and focus, and a non-zero light distance overwrites the shadow camera's far plane — plus cheap fake contact shadows with a radial-gradient plane, since three.js has no ContactShadows class); environment lighting and light probes updated (the renderer prefilters an equirectangular environment itself when its mapping is set, so manual PMREM from an equirectangular texture adds no quality; LightProbeGenerator.fromCubeRenderTarget is async); a full WebGPU and TSL section (await renderer.init(); what carries over and what is replaced — RectAreaLightTexturesLib registered through RectAreaLightNode.setLTC instead of RectAreaLightUniformsLib, CubeRenderTarget instead of WebGLCubeRenderTarget, LightProbeGrid instead of LightProbeGridWebGL, SunLight registered with the renderer library, ClusteredLighting Forward+ for many point lights, per-material light selection with lightsNode instead of layers, colored transmitted shadows via shadowMap.transmitted and castShadowNode/receivedShadowNode, and scene.environment not lighting Lambert or Phong materials there); and a Common Mistakes list that documents the recent deprecations and renames (PCFSoftShadowMap deprecated in r182, both renderers falling back to PCFShadowMap; HDRLoader renamed from RGBELoader in r180, addons imported from three/addons/; THREE.Timer replacing the Clock deprecated in r183; scene.environmentIntensity instead of a material's envMapIntensity for dimming the scene environment). Nothing in the file runs on its own and nothing is sent anywhere: it is a text reference with JavaScript examples for your own Three.js project; the previous pin and character count are superseded. 1. Fetch SKILL.md from the repository URL above into a temporary folder, then compare it with the fingerprint from Skill Harbor's review of 2026-10-19 (see [FINGERPRINTS] above). If it does not match, stop and tell me what you found. 2. Safety check: read SKILL.md and review it for anything suspicious (unexpected network calls, shell commands, credential harvesting); STOP on any red flag and tell me. In plain words, confirm from the file: it is a text reference targeting three.js r186 with JavaScript examples and no executable code of its own, no scripts and no companion files; it asks for no API key and no secret; its examples run locally in a browser against the three.js library (WebGLRenderer, or WebGPURenderer with TSL in the dedicated section); and it declares no license. 3. Report back in two or three sentences what the lighting reference covers (light types and physical units, shadow setup and tuning, helpers, environment lighting and light probes, common setups, animation, performance, WebGPU and TSL, common mistakes), so I can consult it in my own project. Do not copy the guide's content into my project — this is a reference lookup only. GitHub is optional: if I have a GitHub account or the gh CLI, you may use it; otherwise public access is fine. Never require it unless it's in the prerequisites above. Rules: don't touch anything outside the temp folder. If anything looks off, stop and ask me.
Saved to your recent installs. Find it anytime on /connect.
🔒 Security, provenance and what this touches
The install prompt below already includes the vetting steps: your agent follows the community checklist before installing anything with executable code. Want more?
Verification certificate
Dated facts about what was checked for this listing, and how. This is not a safety certification.
- Pinned version
- 0e18186 · 2026-10-19
- Sandbox install test
- Install ran in our test sandbox · Nov 11, 2026
- Creator identity
- Not verified
- Fingerprint watch
- Last checked · Nov 19, 2026 : no change detected in the files linked by this install prompt
- Install prompt analysis
- 2026-10-13 : No commands, network calls, packages, file writes or API keys detected.
Skill Harbor never reviews the code of a listed skill. These are dated facts about the install prompt and our install test, not a safety certification. Review a skill yourself before you install it. How we verify
Questions
How do I install a skill?
Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the skill up for you — no manual configuration.
Where does my money go?
Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.
What does the ✓ next to a creator’s name mean?
It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a skill before installing it.