Sub topic 1
How Light and Shadows Behave: Size, Distance and Softness
Every lighting decision in Blender comes back to a few geometric facts. How big is the light as seen from the subject? How far away is it? How much light arrives per square meter? This chapter builds that model. Later chapters use it when they choose lamp types, place lamps and set up an HDRI.
Prerequisites
This chapter assumes you can:
- Move, rotate and scale objects in the 3D viewport.
- Find a lamp's settings in the Properties editor.
- Render a simple scene with Cycles or EEVEE at least once.
No Python is needed to follow the ideas. The one script at the end is optional.
Hard and soft shadows come from one thing
A real light is never a mathematical point. It has some size, and a shadow edge is where that size shows up.
Stand a ball on a floor under a light. Points directly behind the ball cannot see any part of the light, so they are fully dark. This region is the umbra. Points farther out can see part of the light but not all of it, so they are partly lit. This region is the penumbra. Points beyond that see the whole light and are fully lit.
A tiny light leaves almost no penumbra, which gives a hard shadow edge. A large light has a wide penumbra, which gives a soft edge. Shadow softness is therefore a question of how large the light looks from the point being shaded.
Apparent size: the size-to-distance ratio
What matters is the apparent size (also called angular size): the light's physical size divided by its distance from the subject. Two lights with the same apparent size give the same softness.
- A 1 m area light at 2 m from the subject looks the same size as a 0.5 m light at 1 m.
- Moving a light closer makes it look bigger, so shadows get softer.
- Moving a light farther away makes it look smaller, so shadows get harder.
- Enlarging a light without moving it makes shadows softer.
The second point surprises many people. A common belief is that a distant light is "softer" because it is gentler. It is the reverse. The sun is enormous, but at roughly 150 million km it spans only about 0.53° of sky. That is why sunlight casts crisp shadows on a clear day, and why Blender's Sun lamp uses an angle instead of a size.
Estimating the penumbra
You can estimate the penumbra width with similar triangles. Let:
Lbe the light's size,abe the distance from the light to the object casting the shadow,bbe the distance from that object to the surface receiving the shadow.
Then the penumbra width is roughly L × b / a.
| Light size L | Light to object a | Object to surface b | Penumbra width |
|---|---|---|---|
| 0.5 m | 2 m | 0.5 m | 0.125 m |
| 0.5 m | 4 m | 0.5 m | 0.0625 m |
| 2 m | 2 m | 0.5 m | 0.5 m |
| 0.5 m | 2 m | 0.05 m | 0.0125 m |
The last row shows a second effect. The shadow is sharp where the object touches the surface and gets softer as the gap grows. This is why a cup's shadow is crisp at its base and blurry farther out. It also explains why contact shadows make objects look grounded.
Distance also changes brightness
Distance changes how much light arrives, not just how soft it is. For a small light, the light reaching a surface follows the inverse square law. Doubling the distance spreads the same light over four times the area, so the surface receives one quarter as much.
This leads to the usual workflow trap. If you push a light from 2 m to 4 m to harden the shadows, the subject drops to a quarter of its brightness. To keep the exposure you must multiply the lamp's power by (4 / 2)² = 4.
| Change | Brightness at the subject | Shadow softness |
|---|---|---|
| Distance ×2, same power | ¼ | Harder |
| Distance ×2, power ×4 | Same | Harder |
| Size ×2, same distance | About the same | Softer |
| Distance ×½, same power | ×4 | Softer |
Two caveats apply to this rule.
- It assumes the light is small compared with its distance. A large area light placed close to the subject falls off more slowly than the law predicts, because different parts of it sit at different distances.
- The Sun lamp ignores it. A Sun lamp models light from an effectively infinite distance. Its strength is the same wherever you put it in the scene, and only its rotation matters. In Blender it is measured in W/m², not watts.
Size also shapes highlights and reflections
The same geometry controls what a light looks like in shiny surfaces. A glossy sphere reflects the light as a bright shape, and the shape is the lamp itself.
- A small light gives a tiny, hard highlight.
- A large area light gives a large, soft highlight with a recognizable rectangle or disc shape.
Many product shots use big area lights for this reason. The reflection reads as a soft window of light, which looks clean and controlled. A tiny light on a polished surface looks harsh and can be distracting.
What the render engines do with this
Both engines use the light's size setting, but they get softness differently.
- Cycles traces rays toward the light's real shape. Soft shadows, penumbrae and the inverse square falloff come out of the simulation. Larger lights need more samples to look smooth, because shadow rays hit the light only part of the time.
- EEVEE approximates the same behavior with shadow maps and filtering. The light's radius or size still drives softness, but the result depends on EEVEE's shadow settings, and it is less exact in tight contact areas. The chapter on Cycles versus EEVEE covers these differences.
The model in this chapter holds in both. Only the precision differs.
Checking the model in Blender
You can test all of this with a short script. It builds two point lights with different radii and computes the penumbra width and the power needed to keep exposure when a light is moved. Run it from the Scripting workspace. It adds objects to the current scene without removing anything.
import bpy
def penumbra(light_size, light_to_object, object_to_surface):
"""Approximate penumbra width in meters using similar triangles."""
return light_size * object_to_surface / light_to_object
def matched_power(power, old_distance, new_distance):
"""Power needed to keep the same brightness after moving a small light."""
return power * (new_distance / old_distance) ** 2
# Same position, different radius: only the softness changes
for name, radius in (("Small", 0.05), ("Large", 1.0)):
data = bpy.data.lights.new(name=name, type='POINT')
data.energy = 1000.0 # watts
data.shadow_soft_size = radius # radius in meters
obj = bpy.data.objects.new(name=name, object_data=data)
bpy.context.collection.objects.link(obj)
obj.location = (0.0, -3.0, 3.0)
width = penumbra(radius * 2, 2.0, 0.5) # radius * 2 is the diameter
print(f"{name}: penumbra is about {width:.3f} m")
print("Power at 4 m to match 1000 W at 2 m:", matched_power(1000.0, 2.0, 4.0))Disable one light at a time, or hide it from the render, and compare. With a ball on a floor, the large light's shadow should have a wide, gradual edge, and the small light's should be nearly sharp. The script prints 4000 W for the matched power.
Common mistakes
- Moving a lamp farther away to soften shadows. This hardens them. Enlarge the light or bring it closer.
- Forgetting the brightness change. Distance changes exposure with the square of the ratio.
- Using a tiny light for a "soft" look. A small radius gives a hard shadow however high you set the power.
- Judging softness from the wrong spot. Softness depends on the gap between object and surface, so look at the shadow far from the contact point.
- Expecting a Sun lamp to soften with distance. Only its angle changes the softness.
Exercise
A lamp 1.5 m from a statue casts a shadow with a penumbra that is too hard. You want the shadow softer and the statue to stay at the same brightness. Describe two ways to do this, and say what you must adjust in each.
Show answer
First, increase the lamp's size (its radius or area size) and leave it where it is. Brightness stays about the same, so no power change is needed. Second, move the lamp closer. For example, halving the distance to 0.75 m increases the apparent size, so the shadow softens. Brightness rises to four times, so you must reduce power to a quarter to match the original exposure. Moving the lamp away is wrong, because it shrinks the apparent size and hardens the shadow.