Skip to main content
skill CX Codex

threejs-lighting · cesartevisual — Claude Code skill for Three.js lighting

The threejs-lighting Claude Code skill guides lighting and shadow work in Three.js scenes. It comes into play when setting up environment maps, direct lights, or shadow maps.

MIT 694 installs ★ 26 updated 2026-09-10

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cesartevisual/threejs-skills --skill threejs-lighting -a claude-code
Open on GitHub

What threejs-lighting does

The skill helps shape scene lighting around the intended mood and material readability. For PBR objects, its guidance pairs an environment with a controlled key light; metallic surfaces need reflected surroundings rather than a stronger ambient setting.

Instructions cover environment mapping, limiting shadows to relevant lights and objects, and tuning shadow-camera coverage and bias. Baked lighting is considered for static scenes. Point-light shadows need several views and can be costly.

The guidance calls for checking shadow artifacts, texture seams, and moving objects near shadow-frustum edges, then comparing the scene with shadows enabled and disabled on the target device. Keep the project's existing architecture and installed versions. For exact API signatures, consult the Three.js documentation.

What it helps with

  • choose lighting for PBR materials in a Three.js scene
  • adjust shadow-camera coverage and bias
  • limit shadow casting to selected lights and objects
  • compare baked lighting with dynamic shadows

Example prompts for the agent

  • Set up lighting and shadows for this Three.js scene.
  • Choose an environment and key light for the metallic object.
  • Check moving objects near the shadow-camera boundaries.

How to install threejs-lighting

1Skills CLI (Vercel)

npx skills add cesartevisual/threejs-skills --skill threejs-lighting -a claude-code

2Manually: put the files in place

~/.claude/skills/threejs-lighting/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/threejs-lighting/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about threejs-lighting

How do I install threejs-lighting in Claude Code?

Run npx skills add cesartevisual/threejs-skills --skill threejs-lighting -a claude-code. The skill file is located at ~/.claude/skills/threejs-lighting/SKILL.md.

What does threejs-lighting do?

It provides guidance for lighting Three.js scenes with environment maps, direct lights, baked lighting, and shadow maps.

What should I check when tuning Three.js shadows?

Inspect shadow artifacts, detached contact shadows, thin surfaces, and moving objects at shadow-frustum edges. Compare the scene with and without shadows on the target device.

Source text

SKILL.md · MIT
---
name: threejs-lighting
description: "Light Three.js scenes using environment maps, direct lights, baked light, and tuned shadow maps."
---

# Lighting and Shadows

Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.

Establish the intended mood and material readability before adding lights. For a PBR subject, test an environment plus a controlled key light. Metallic surfaces need reflected surroundings; increasing ambient intensity is not a substitute for meaningful reflection.

Use environment preprocessing and mapping appropriate to the renderer/version. Decide whether background and illumination should share an image. Dispose owned preprocessing resources and replaced environments without releasing shared loader cache entries.

Enable shadows only on lights and objects that need them. Tighten directional/spot shadow coverage before raising map resolution. Inspect the shadow camera with helpers; adjust bias and normal bias in relation to scene scale. Excessive bias detaches contact shadows. Point-light shadows require multiple views and can be expensive.

Choose baked lighting for static scenes when dynamic lights add little value. Keep shadow updates demand-driven for static arrangements where supported. Add contact-shadow approximations only when they remain believable during interaction.

Verify shadow acne, detached feet, thin surfaces, moving objects at shadow-frustum edges, dark metallic surfaces, and texture seams. Compare the scene with and without shadows on a target device before accepting the cost.

## API reference

Consult the [official documentation](https://threejs.org/docs/pages/Light.html) for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.

© cesartevisual · MIT · cesartevisual/threejs-skills

Similar skills

All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →

threejs-lighting by other authors comes first.

threejs-lighting CloudAI-X threejs-lighting is a Claude Code skill for setting up lighting in Three.js. It comes into play when adding lights, tuning shadows, or working with HDR environments. CX Codex +1 19,400installs threejs-lighting calesthio threejs-lighting is a Claude Code skill with guidance for configuring lights and shadows in Three.js. It covers light selection, shadow maps, and render artifact fixes. CX Codex +1 1,200installs threejs-materials-lighting gamedev-skills The threejs-materials-lighting Claude Code skill configures materials, lighting, and shadows in three.js scenes. It kicks in when meshes render black or washed out, shadows misbehave, or EffectComposer darkens the image. CX Codex +1 11,100installs roblox-lighting TabooHarmony A skill for Roblox lighting, atmosphere, day/night cycles and post-processing. Useful when a scene looks flat, too dark or washed out. CX Codex +1 3,900installs blender-lighting RobLe3 blender-lighting configures studio, outdoor, and cinematic lighting in Blender scenes using automated Python recipes via MCP. CX Codex +1 2,300installs r3f-lighting EnzeD r3f-lighting is a Claude Code skill for lighting React Three Fiber scenes with direct lights, environments, and shadows. It helps investigate shadow artifacts and render costs. CX Codex +1 2,200installs scenario-blender-lighting-rendering scenario-labs scenario-blender-lighting-rendering — a skill that walks an AI agent through lighting, rendering and compositing in Blender, from three-point setups to AgX color management. CX Codex +1 1,100installs lighting https://github.com/arjun988 Configures cinematic and game lighting in Blender via MCP. Sets up three-point rigs, HDRI maps, volumetrics, and mood lighting. CX Codex +1 636installs

From the same set24

The whole set →
threejs-r3f The threejs-r3f Claude Code skill helps build and repair React Three Fiber scenes. It covers Drei helpers, Suspense loading, events, and React lifecycle integration. CX Codex +1 820installs threejs-performance threejs-performance is a Claude Code skill that profiles and optimizes Three.js frame time, GPU workload, asset memory, and resource leaks. CX Codex +1 817installs threejs-web This Claude Code skill plans and builds Three.js web experiences or focused 3D features. It inspects the project and checks the result in a browser. CX Codex +1 776installs threejs-animation threejs-animation — a skill for Claude Code guides animation work in Three.js. It covers clips, skeletal motion, transitions, and scroll-driven timelines. CX Codex +1 753installs threejs-shaders threejs-shaders — a Claude Code skill for writing and debugging Three.js GLSL shaders, custom material effects, uniforms, and geometry deformation. CX Codex +1 694installs threejs-testing threejs-testing — a skill for Claude Code defines visual QA and browser testing guidelines for Three.js scenes. Focuses on deterministic fixtures, GPU checks, and teardown lifecycle tests. CX Codex +1 681installs threejs-interaction This Claude Code skill guides Three.js interaction work, from object picking to orbit controls. It applies when an agent is asked to add dragging, selection, or synchronized HTML controls. CX Codex +1 681installs threejs-assets The threejs-assets Claude Code skill guides loading and managing glTF models, textures, and user-provided 3D files. It applies to asset validation, compression, caching, and cleanup in Three.js projects. CX Codex +1 676installs

Project sponsors

Companies that keep this analytics open