threejs-lighting
Skill by midudev
Explains lighting in Three.js, covering light types, shadow setup, environment lighting (IBL) and performance tips. Written for developers who add lights or tune shadows in Three.js scenes.
Install threejs-lighting
Built from the published package, never by AI.
git clone --depth 1 https://github.com/midudev/autoskills /tmp/autoskills && mkdir -p ~/.claude/skills && cp -r /tmp/autoskills/packages/autoskills/skills-registry/threejs-lighting ~/.claude/skills/threejs-lightingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/midudev/autoskills /tmp/autoskills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/autoskills/packages/autoskills/skills-registry/threejs-lighting ~/.gemini/antigravity-cli/skills/threejs-lightingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The threejs-lighting skill is a reference guide for lighting in Three.js scenes. It covers the main light types, including ambient, hemisphere, directional, point, spot and rectangular area lights, with code examples for each. It also explains how to configure shadow maps, set up image-based lighting (IBL) with HDR environment maps, and use light probes.
The guide includes common setups such as three-point lighting, outdoor daylight and indoor studio lighting. It also lists performance tips, such as limiting the light count, using smaller shadow maps and tightening shadow frustums. It is written for developers who use Three.js and want to add lights, tune shadows or optimize lighting.
Written from the project's SKILL.md and checked against it.
What it can do
- Light types overviewCompares ambient, hemisphere, directional, point, spot and rectangular area lights.
- Shadow setupShows how to enable shadow maps on the renderer, lights and meshes.
- Shadow tuningCovers shadow camera frustum, bias, normal bias and map size settings.
- Environment lightingLoads HDR or cube environment maps to light PBR materials (IBL).
- Light probesCaptures lighting from a point in space using LightProbeGenerator.
- Light helpersAdds helper objects that visualize each light type and its shadow camera.
- Common setupsProvides three-point, outdoor daylight and indoor studio lighting examples.
- Contact shadowsAdds a fake, fast contact shadow using the ContactShadows object.
- Light animationAnimates light position, intensity and color over time.
- Performance tipsLists ways to reduce lighting cost, including light layers and smaller shadow maps.
What you need
- Three.js, imported as "three" in the examples
- Three.js examples add-ons for RGBELoader, RectAreaLightUniformsLib and ContactShadows
Try asking
- Add a directional light with shadows to my Three.js scene
- Set up image-based lighting with an HDR environment map in Three.js
- Show me how to fix shadow acne on my Three.js directional light
Good to know
- RectAreaLight does not cast shadows natively.
- RectAreaLight only works with MeshStandardMaterial and MeshPhysicalMaterial.
- shadow.radius only applies with PCFSoftShadowMap.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/autoskills/skills-registry/threejs-lighting/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to threejs-lighting
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
threejs-lighting: common questions
Does this skill cover shadows in Three.js?
Yes. It covers enabling shadows on the renderer, lights and meshes, choosing a shadow map type, and tuning shadow camera, bias and map size.
Can it set up image-based lighting?
Yes. It shows how to load an HDR environment map with RGBELoader, use it as scene.environment, and use PMREMGenerator for better reflections.
Does it cover performance?
Yes. It includes performance tips such as limiting light count, using smaller shadow maps, tight shadow frustums and light layers.
How do I install threejs-lighting?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is threejs-lighting free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is threejs-lighting safe to use?
It scores 85 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to threejs-lighting?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
