threejs-lighting
Skill by sickn33
Guides an AI assistant through lighting in Three.js scenes, including light types, shadows and image-based lighting. It is written for developers building or tuning Three.js scenes.
Install threejs-lighting
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/threejs-lighting ~/.claude/skills/threejs-lightingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/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
This skill gives an AI assistant guidance on lighting in Three.js scenes. It covers the main light types (ambient, hemisphere, directional, point, spot and rect area lights), with code examples for each. It also explains shadow map setup and tuning, image-based lighting with HDR environment maps, light probes, and common setups such as three-point and outdoor daylight.
It is written for developers who are adding lights, configuring shadows, setting up IBL, or tuning lighting performance in a Three.js project. The source includes code snippets for properties such as shadow map size, bias and environment textures. It also lists performance tips, such as limiting light count and using smaller shadow maps. The file is marked as a community source.
Written from the project's SKILL.md and checked against it.
What it can do
- Light typesExplains ambient, hemisphere, directional, point, spot and rect area lights with code examples.
- Shadow setupCovers enabling renderer and light shadows, shadow map types, and bias settings.
- Shadow optimizationDescribes tight shadow camera frustums and shadow map size tradeoffs.
- Environment lighting (IBL)Shows how to load HDR and cube environment maps and set them on the scene.
- Light probesShows how to generate a light probe from a cube texture or render target.
- Light helpersShows how to add and update helpers for each light type.
- Common lighting setupsProvides examples of three-point, outdoor daylight and indoor studio lighting.
- Light animationShows how to orbit, pulse and color-cycle a light over time.
- Performance tipsLists guidance on light count, baked lighting and shadow map sizes.
What you need
- Three.js library
- A WebGL renderer for RectAreaLight
Try asking
- Add a directional light with soft shadows to my Three.js scene
- Set up image-based lighting with an HDR environment map in Three.js
- Suggest a three-point lighting setup for my Three.js product viewer
Good to know
- RectAreaLight does not cast shadows natively and needs custom solutions.
- RectAreaLight requires the WebGL renderer and uniforms initialization.
- The source does not verify a Three.js addon path for ContactShadows; plain Three.js needs a reviewed alternative.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/threejs-lighting/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md13 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 the skill cover shadows for RectAreaLight?
No. The source says RectAreaLight does not cast shadows natively and requires custom solutions.
What is covered for environment lighting?
The source covers image-based lighting (IBL) using HDR equirectangular maps and cube texture environments, with PMREMGenerator for reflections.
Can I use ContactShadows in plain Three.js?
The source says the ContactShadows addon path is not verified for plain Three.js. It notes that Drei's ContactShadows is a separate component for React Three Fiber projects.
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 MIT licence. The service it connects to may have its own pricing.
Is threejs-lighting safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, 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.
