threejs-lighting

Configure Three.js scenes with light types, shadows, and environment lighting.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/hanzoai/video --skill threejs-lighting-hanzoai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-lighting
Source: https://github.com/hanzoai/video/tree/main/.agents/skills/threejs-lighting
Command: npx skills add https://github.com/hanzoai/video --skill threejs-lighting-hanzoai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Three.js projects often struggle with configuring effective lighting, shadows, and environment lighting to achieve realistic visuals; this Skill provides a comprehensive guide to lighting types, shadow setup, IBL, and optimization tactics to streamline scene creation.

Core Features & Use Cases

  • Lighting types overview (Ambient, Hemisphere, Directional, Point, Spot, RectArea) with practical usage guidance.
  • Shadow configuration and optimization strategies for performance and visual fidelity.
  • Environment lighting and IBL setup for realistic materials and reflections, plus common presets.

Quick Start

Start by adding basic ambient and directional lights to your scene and iteratively adjust shadows to achieve desired mood and realism.

Frequently Asked Questions about threejs-lighting

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

FAQPage Schema
What types of Three.js lights should I use for realistic architectural visualization?

Three.js realistic scenes use ambient and hemisphere lights for base illumination, directional lights for sun shadows, and spot or point lights for localized accents. RectArea lights simulate windows and rectangular emissive surfaces.

How do I configure shadows in Three.js without dropping frame rates?

Configuring Three.js shadows requires tuning shadow map resolution, bias, and camera frustum bounds per light. Optimizing these shadow parameters balances visual fidelity against real-time rendering performance for interactive demos.

What is PMREM and environment lighting in Three.js?

PMREM (Prefiltered Mipmapped Radiance Environment Map) processes environment maps for Three.js IBL. It generates realistic reflections and ambient lighting on materials, ensuring accurate image-based lighting across interactive WebGL applications.

Does Three.js RectArea light work with standard shadow mapping?

RectArea lights in Three.js do not support standard shadow mapping. Use directional or spot lights when shadows are required, and reserve RectArea lights for soft ambient illumination and rectangular light source reflections.

How do I set up Three.js environment maps for realistic material reflections?

Setting up Three.js environment maps involves loading HDR textures and applying them via PMREM. This IBL setup provides accurate ambient lighting and material reflections for realistic real-time 3D apps and architectural visualizations.