threejs-lighting · calesthio — Claude Code skill: what it does, how to install
Reference guide for configuring lights and shadows in Three.js scenes. Useful when placing light sources, tuning shadow maps, or fixing render artifacts.
npx skills add calesthio/OpenMontage --skill threejs-lighting -a claude-codeWhat threejs-lighting does
The skill supplies your AI assistant with implementation patterns for Three.js illumination. It covers standard light sources including AmbientLight, HemisphereLight, DirectionalLight, PointLight, SpotLight, and RectAreaLight. It also details relative performance costs, from cheap ambient fills to resource-heavy area panels.
Shadow configuration receives dedicated attention. The reference covers activating renderer.shadowMap, choosing map algorithms such as PCFSoftShadowMap, and clipping frustums for directional shadow cameras. Specific values for bias and normalBias help resolve shadow acne artifacts.
A notable catch involves RectAreaLight: it functions only with MeshStandardMaterial and MeshPhysicalMaterial, and demands RectAreaLightUniformsLib.init() before use. Skipping uniform initialization will break rendering immediately.
What it helps with
- select the right Three.js light type based on performance cost
- configure shadow maps and camera frustums for directional or spot lights
- eliminate shadow acne artifacts using
biasandnormalBias - set up fast contact shadows using
ContactShadows
Example prompts for the agent
- Set up a directional light with PCF soft shadows in my Three.js scene
- How do I fix shadow acne on my directional light shadow camera?
- Add a RectAreaLight with helper and initialize its uniforms
How to install threejs-lighting
1Skills CLI (Vercel)
npx skills add calesthio/OpenMontage --skill threejs-lighting -a claude-code2Manually: put the files in place
~/.claude/skills/threejs-lighting/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/threejs-lighting/
1Skills CLI (Vercel)
npx skills add calesthio/OpenMontage --skill threejs-lighting -a codex2Manually: put the files in place
.agents/skills/threejs-lighting/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add calesthio/OpenMontage --skill threejs-lighting -a cursor2Manually: put the files in place
.cursor/skills/threejs-lighting/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install calesthio/OpenMontage threejs-lighting2Manually: put the files in place
.github/skills/threejs-lighting/SKILL.md1Skills CLI (Vercel)
npx skills add calesthio/OpenMontage --skill threejs-lighting -a gemini-cli2Platform CLI
gemini skills install https://github.com/calesthio/OpenMontage --path .claude/skills/threejs-lightingManually: put the files in place
.devin/skills/threejs-lighting/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add calesthio/OpenMontage --skill threejs-lighting -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set28
The whole set →Other versions of threejs-lighting
Similar
Questions about threejs-lighting
How do I install threejs-lighting in Claude Code?
Run npx skills add calesthio/OpenMontage --skill threejs-lighting -a claude-code. The file will be placed at ~/.claude/skills/threejs-lighting/SKILL.md.
What does threejs-lighting do?
It provides code patterns and reference tables for Three.js lights, shadow camera settings, bias adjustments, and fake contact shadows.
What are the limitations of RectAreaLight?
It only works alongside MeshStandardMaterial or MeshPhysicalMaterial and does not support native shadows. You must also execute RectAreaLightUniformsLib.init() prior to creating the light.