directional_light
Sunlight: parallel light from one direction, with shadows.
In scene text
directional_light { azimuth 1 elevation 1 intensity 1 }Add it in the Inspector (Add Component), in scene text as above, or ask your AI. Fields you leave out keep their defaults.
Fields 10
| Field | Type | Unit / range | What it does |
|---|---|---|---|
azimuth | number | deg | Compass direction the sun shines from (0 = north, 90 = east). |
elevation | number | deg, -90 … 90 | Height of the sun above the horizon. |
intensity | number | 0 … 100 | Brightness (about 3 for a clear afternoon). |
color | colour (r, g, b) | — | Tint on top of the natural color from the sun's height. White keeps it natural. |
moon | number | 0 … 4 | Moonlight once the sun is down: 0 a moonless or overcast night, 1 a clear full-moon night (lights the scene blue, casts shadows, lights the sky and the haze). |
moon_phase | number | 0 … 1 | Share of the moon's disc that is lit: 0 new moon, 0.5 half moon, 1 full moon. A thinner moon gives less light. |
moon_azimuth | number | deg | Compass direction of the moon (0 = north, 90 = east). Leave out (with moon_elevation) to keep it opposite the sun. |
moon_elevation | number | deg, -90 … 90 | Height of the moon above the horizon. A night scene: sun elevation -12 or lower, moon_elevation 20-50. |
stars | number | 0 … 2 | Star brightness at night: 0 none (city glow), 1 a clear country sky. A bright moon washes the faint ones out. |
city_glow | number | 0 … 2 | Light pollution at night: 0 wilderness (dark), 1 a town, 2 a big city: a warm glow in the air and on the clouds, brightest toward the horizon, that lights every face a little. |
Arcwright Beta 2 (0.4.0) · generated from the engine source (25e375c86)Something wrong or missing? Tell us