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.