← Back to Nodes
DirectionalLight3D
⚠️ Experimental - Pre-Release
Inheritance Hierarchy
Inherits:
Inheritance Chain:
Node → Node3D → DirectionalLight3D
DirectionalLight3D is a 3D directional light node. Directional lights emit light in a specific direction, like sunlight. They extend Node3D and provide lighting for 3D scenes.
Fields
DirectionalLight3D has no additional fields beyond those inherited from Node3D.
Inherited Fields: DirectionalLight3D also has all fields from Node3D: transform, visible
Usage Example
@script SunLight extends DirectionalLight3D fn init() { // Position the light self.transform.position.y = 10.0 // Rotate to point downward // Directional lights use rotation to determine light direction }Related
- Node3D- Base 3D node
- OmniLight3D- Point light node
- SpotLight3D- Spotlight node
