Light Types
Babylon.js offers four primary light types, each simulating different real-world lighting scenarios:
- HemisphericLight: Simulates ambient environment lighting (like outdoor light from the sky). Ideal for general scene illumination.
- PointLight: Emits light in all directions from a single point (like a light bulb). Intensity decreases with distance.
- DirectionalLight: Emits parallel rays in a specific direction (like sunlight). Position doesn't matter, only direction.
- SpotLight: Emits a cone of light from a point in a direction (like a flashlight or stage spotlight).