threejs-materials-lighting
Skill by gamedev-skills
Lights and shades three.js r187 scenes, covering standard, physical and unlit materials, shadows, HDR environment lighting and tone mapping. It is for scenes where meshes render black, look washed out, or have missing or noisy shadows.
Install threejs-materials-lighting
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/web-engines/threejs-materials-lighting ~/.claude/skills/threejs-materials-lightingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install threejs-materials-lighting in Claude Code
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/web-engines/threejs-materials-lighting ~/.gemini/antigravity-cli/skills/threejs-materials-lightingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install threejs-materials-lighting in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This is an agent skill written as a SKILL.md file for three.js r187. It guides the assistant to pick a material, usually MeshStandardMaterial, and to build a light rig with an environment map or hemisphere fill plus a directional key light. It also covers turning on shadows in the renderer, the light and each mesh, fitting the shadow camera, and tagging colour textures as sRGB while leaving data maps linear. Further sections cover HDR image-based lighting, choosing a tone mapping curve, and ending post-processing chains with OutputPass.
The skill includes a gotchas list and a verification step that runs a lighting state probe in the browser. It is aimed at developers debugging black, washed out or shadowless three.js scenes. The source says it does not cover renderer setup, glTF model loading or custom shaders, and points to other skills for those.
Written from the project's SKILL.md and checked against it.
What it can do
- Material choicePicks MeshStandardMaterial by default and suggests physical or basic materials for specific cases.
- Light rig setupSets up an environment map or hemisphere fill with a directional key light.
- Shadow configurationEnables shadows on the renderer, light and meshes, and fits the shadow camera to the scene.
- Texture colour spacesTags colour textures as sRGB and keeps normal, roughness and metalness maps linear.
- HDR environment lightingLoads an HDR file with HDRLoader and applies it as scene environment and background.
- Tone mappingChooses a tone mapping curve and ends EffectComposer chains with OutputPass.
- Lighting state probeRuns a browser expression that reports lights, environment, shadow settings and colour map spaces.
What you need
- three.js r187
- npm for the build check
- Playwright for running the page probe (optional)
Try asking
- My mesh renders black after I add a material. What should I check?
- Fix shadow acne on my ground plane in three.js.
- Load an HDR file as environment lighting for my three.js scene.
Good to know
- Patterns target three.js r187 and may differ in other versions.
- Does not cover renderer setup, model loading or custom shaders.
- Intensities from pre-r155 tutorials will look too dark.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/web-engines/threejs-materials-lighting/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
references/materials-lights-table.md6 KB
Alternatives to threejs-materials-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-materials-lighting: common questions
Which three.js version does this skill target?
It targets three.js r187 and was last verified on 2026-11-11 against three@0.187.0.
Why does my scene look too dark after following an old tutorial?
Lighting has been physically based since r155, so intensities from older tutorials look far too dark. The skill suggests raising the key light to about 2 to 3 or adding an environment map.
Does this skill cover renderer setup or loading glTF models?
No. The source says renderer setup belongs to threejs-scene-setup and model loading to threejs-gltf-loading.
How do I install threejs-materials-lighting?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is threejs-materials-lighting free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is threejs-materials-lighting safe to use?
It scores 94 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-materials-lighting?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
