threejs-lighting

Optimize Three.js scene lighting including shadows and environment maps for canvas pages.

1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/MCERQUA/jam-skills --skill threejs-lighting-mcerqua
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-lighting
Source: https://github.com/MCERQUA/jam-skills/tree/main/threejs-lighting
Command: npx skills add https://github.com/MCERQUA/jam-skills --skill threejs-lighting-mcerqua

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides guidance on Three.js lighting, including light types, shadows, and environment lighting, to optimize visual performance and quality in canvas pages.

Core Features & Use Cases

  • Light Types Overview: Offers detailed explanations and usage of various light types (Ambient, Hemisphere, Directional, Point, Spot, RectArea) and their shadows.
  • Light Setup: Includes instructions on how to set up and configure different types of lights in a scene.
  • Shadow Optimization: Offers tips for optimizing shadow rendering and resolving common issues like acne.
  • Environment Lighting: Guidance on implementing Image-Based Lighting (IBL) using HDR environment maps.
  • Light Probes: Instructions on capturing lighting information from a point in space for ambient lighting.
  • Common Lighting Setups: Provides examples for common lighting setups such as three-point lighting and outdoor daylight.
  • Light Animation: Offers techniques for animating lights to achieve dynamic effects.

Quick Start

To set up ambient and directional lighting in your scene, import the threejs-lighting skill and add an AmbientLight and a DirectionalLight to your scene.

Frequently Asked Questions about threejs-lighting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Three.js lighting and shadows for canvas pages?

To optimize Three.js lighting and shadows in canvas pages, configure appropriate light types, adjust shadow map settings, and resolve common rendering issues like shadow acne. This Skill provides specific setup instructions and performance tips for 3D visualization projects.

What is the best way to set up Three.js shadows without getting acne?

The best way to eliminate Three.js shadow acne is by applying shadow optimization techniques provided in this Skill. These adjustments involve tuning shadow casting properties and bias values to ensure clean, high-quality shadow rendering in your 3D scene.

How do I implement Image-Based Lighting using HDR environment maps in Three.js?

Implementing Image-Based Lighting (IBL) in Three.js involves loading HDR environment maps to illuminate your scene. This Skill provides guidance on setting up environment lighting to achieve realistic ambient lighting and reflections for 3D graphics.

Which Three.js light types should I use for outdoor daylight or three-point lighting?

For outdoor daylight or three-point lighting setups, you should use specific combinations of Three.js light types. This Skill details using Ambient, Hemisphere, Directional, Point, Spot, and RectArea lights to achieve common 3D animation lighting configurations.

Do I need to understand basic lighting principles before optimizing Three.js scenes?

Yes, you need an existing understanding of Three.js and basic lighting principles before using this Skill. It is designed to help developers who already have foundational 3D graphics knowledge optimize visual performance and quality in their canvas pages.

Can I animate Three.js lights to achieve dynamic 3D graphics effects?

Yes, you can animate Three.js lights to achieve dynamic 3D graphics effects. This Skill offers specific techniques for light animation, allowing you to create moving lights and changing lighting conditions within your 3D visualization and animation projects.