DirectionalLight3D
A directional light that simulates sunlight, casting parallel rays across the entire scene.
Lighting
No shortcutBeginner5 min readQuick Reference
DirectionalLight3D
Godot EngineKeyboard Shortcut
N/A
Where to Find
Scene dock — Create New Node > Node2D or Node3D > Light*
Best Used For
- ▸Add ambient and directional light to scenes
- ▸Cast dynamic shadows from game objects
- ▸Create atmospheric effects with colored lights
Beginner-Friendly⏱ 15–30 minutes to master
Key Settings
Add:Rotate:Shadows:Energy:
DirectionalLight3D simulates sunlight or moonlight with parallel light rays across the entire scene. It supports shadow mapping, color, and intensity control.
Where to Find It
Found under Node3D in Create New Node dialog.
How to Use
- Add: Add DirectionalLight3D to your scene.
- Rotate: Rotate the light to change sun direction.
- Shadows: Enable Shadow > Enabled for realistic shadows.
- Energy: Adjust Light Energy for brightness.
Pro Tips
- Use Shadow > Bias to fix shadow acne on surfaces.
- Multiple directional lights can create moon + sun effects.
- Lower shadow map size for performance on mobile.