Lighting Basics
AmbientLight fills the whole scene evenly, like daylight through a window — it has no direction and casts no shadows, so a scene lit only by it looks flat. DirectionalLight comes from one direction, like the sun — it's what makes a shape actually look 3D, with a bright side and a shadow side.
Real depth comes from combining both: a DirectionalLight for shape and shadow, plus a dim AmbientLight so the shadow side isn't pitch black.
Your turn
Add a THREE.DirectionalLight, position it to one side with .position.set(x, y, z), and turn the ambient light down (lower its second argument, the intensity) so the directional light's effect is obvious.
- Added a DirectionalLight with a position
- Lowered the ambient light's intensity
- The sphere now clearly has a light side and a shadow side
Output shows up here when you Run.
Ask JARVIS for a hint