Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 85
  • 7k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-lighting

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install threejs-lighting in Claude Code

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

A

No 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 →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

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.

threejs-lighting Install

Add to stack

Loading.