Sub topic 13
Add a Shadow and Check the Result for Realism
This chapter assumes you can already build a composite with a Smart Object, a layer mask, and clipped adjustment layers. It also assumes you have matched tone and color between the two photos. A subject can still look pasted on at that point, because it has no shadow connecting it to the ground. Here you add that shadow, then run a short checklist to find what still looks wrong.
Why shadows decide realism
A shadow tells the viewer where an object sits in space. Without one, the subject seems to float, even when its color and sharpness match the background. Your eye uses three cues to judge a shadow:
- Direction. The shadow falls away from the light source.
- Softness. A small, distant light such as the midday sun makes a hard shadow. A large or diffused light such as an overcast sky makes a soft one.
- Darkness and color. Shadows are rarely pure black. They pick up the color of the sky and the surface, and they are usually cooler (bluer) than lit areas.
Study the background photo before you paint anything. Find an existing shadow, such as one from a tree, a fence, or a person. Note which way it points and how sharp its edge is. Your new shadow has to agree with it.
Two kinds of shadow
A subject usually needs both.
| Type | Where it appears | Look |
|---|---|---|
| Contact shadow | Where the subject touches the ground | Small, dark, and sharp. It grounds the subject. |
| Cast shadow | Stretches away from the subject along the ground | Longer and softer, fading with distance from the contact point. |
The contact shadow is the one people most often skip. It is also the one that most improves the result.
Build a cast shadow from the subject itself
The most reliable method reuses the subject's own shape. You duplicate the layer, turn the copy black, flatten it onto the ground, and blur it. The steps below assume your subject is on a layer with a layer mask.
- Select the subject layer and press Ctrl+J (Cmd+J on Mac) to duplicate it. Name the copy
Shadow. - Drag
Shadowbelow the original subject layer in the Layers panel. - Click the thumbnail of the
Shadowlayer, not its mask. Choose Image > Adjustments > Brightness/Contrast and set Brightness to -150. Or add a Solid Color fill clipped to the layer. Either way the shape must become near black. - Press Ctrl+T (Cmd+T) for Free Transform. Right-click inside the box and choose Flip Vertical if the shadow should fall toward the viewer, or use Skew or Distort to lay it along the ground.
- Drag the top-center handle down to shorten the shadow. Move the pivot so the shadow's base meets the subject's feet. Press Enter to commit.
- Set the blend mode to Multiply. Lower Opacity to roughly 40–60%.
- Apply a Gaussian blur (Filter > Blur > Gaussian Blur) and start near 3–6 px for a typical web-sized image.
If the subject is a Smart Object, the Brightness/Contrast adjustment above becomes a Smart Filter or a separate clipped adjustment layer. This keeps the subject's own layer editable.
Make the shadow fade with distance
A real shadow is sharpest and darkest at the contact point and softens as it moves away. A single blur value cannot do that. Add a mask to the Shadow layer and paint a gradient on it:
- Click the Add Layer Mask button at the bottom of the Layers panel.
- Pick the Gradient tool (G) with the Foreground to Background preset and the Linear style. Make sure the foreground is white and the background is black.
- Drag from the subject's feet (white, fully visible) to the far end of the shadow (black, hidden).
The shadow now fades out naturally. This works the same way as the masks in earlier chapters: white reveals, black conceals.
Match the direction to the scene
Compare the angle of your shadow with the shadows already in the background. If the scene's shadows fall to the right and slightly back, yours must too. Light from the left means the shadow goes right. A shadow that disagrees with the scene is the most obvious failure in a composite, and no blur setting can hide it.
Paint a contact shadow
Contact shadows are easier to paint than to derive.
- Create a new empty layer above the background and below the subject. Name it
Contact shadow. - Choose the Brush tool (B) with a soft round brush, hardness near 0%. Pick a very dark brown or blue-gray, not pure black.
- Set the brush Opacity to 20–30% and paint a thin band under the places where the subject meets the ground, such as the soles of shoes or the base of an object.
- Set the layer's blend mode to Multiply.
- Build the darkness up with several light strokes instead of one heavy stroke. Soft buildup looks more natural.
A contact shadow is darkest in the narrow gap directly beneath the object and fades within a few pixels. If it spreads wide, it reads as a halo rather than a grounded object.
Handle uneven ground
Shadows follow the surface they land on. If the ground is flat, a simple skew is enough. If it is grass, gravel, or steps, the shadow has to bend with the surface. Options:
- Use Edit > Transform > Warp on the
Shadowlayer and pull the mesh so the shadow follows slopes. - Use Filter > Distort > Displace with a grayscale copy of the ground texture for fine bumps. This takes more setup and is only worth it for large, close shadows.
- Mask the shadow so it does not climb where the surface turns away from the light.
For a simple composite, Warp is usually enough.
Check the result for realism
Once the shadow is in, step back and check the whole image against a fixed list. Look at the image at 100% and also zoomed out to fit the screen. Problems that hide at one scale show at the other.
| Check | What to look for | Typical fix |
|---|---|---|
| Light direction | Highlights and shadows on the subject match the scene | Flip or redraw the shadow; add a Curves adjustment on one side |
| Edge quality | No white or dark fringe around the subject | Mask edge cleanup, or Layer > Matting > Defringe |
| Sharpness | Subject and background have a similar level of detail | Blur the sharper layer slightly, or sharpen the softer one |
| Noise and grain | Grain looks the same on both | Add Filter > Noise > Add Noise to the cleaner layer |
| Scale | The subject's size fits its distance from the camera | Re-do Free Transform |
| Color cast | Skin or whites do not stand apart from the scene | Adjust with a clipped Color Balance or Photo Filter layer |
| Perspective | Camera angle (eye level) matches | Choose a different photo if the mismatch is large |
Edge fringing
If the subject was cut from a bright background and now sits on a dark one, a thin light line can remain along the edge. Fix it on the masked layer with Layer > Matting > Defringe (try 1 px), or Remove White Matte / Remove Black Matte as appropriate. Another option is to shrink the mask slightly with a soft brush set to black.
Sharpness and noise
Photos from different cameras and ISO settings rarely share the same grain. If the subject is crisp and clean while the background is soft and grainy, the eye separates them at once. Add a small amount of noise (1–3%) to the cleaner layer, with Monochromatic checked. Do this on a Smart Object so the filter stays editable.
Perspective
Perspective is the one check you cannot fully fix in Photoshop. If the background was shot from a low angle and the subject from eye level, no transform will fully reconcile them. Catch this at the planning stage, as covered in the first chapter. If you notice it late, use a smaller, more distant placement of the subject to hide the mismatch.
Another way to check: flip the canvas
Your eye adapts to a flaw it has stared at for an hour. Choose Image > Image Rotation > Flip Canvas Horizontal, then look again. A wrong shadow angle or a lopsided placement often jumps out. Flip it back before you save. Because this changes pixels, use it on a flattened copy or undo it with Ctrl+Z immediately. Another option is to place a stamped copy on top with Ctrl+Alt+Shift+E (Cmd+Option+Shift+E), flip that, and delete it when you are done.
Workflow summary
Each fix stays on its own layer or mask, so you can adjust it later without touching the original photos. This is the same non-destructive approach used throughout the composite.
Common mistakes
- Shadow in the wrong place in the stack. If the
Shadowlayer is above the subject, it covers the subject. Keep it below. - Shadow detached from the feet. If the base of the shadow does not touch the base of the subject, the subject floats. Move the transform pivot to the contact point.
- Blur too even. One uniform blur makes a shadow look like a smudge. Use the gradient mask to vary it.
- Ignoring the scene's light. A hard sun needs a hard shadow. A cloudy scene needs a soft one.
- Flip applied to the wrong layer. Flip Vertical on a Smart Object copy can mirror its content in ways you did not expect. Check the result before committing.
Exercise
You have placed a person on a beach photo. The existing shadows in the beach photo fall to the lower right and have soft edges. Describe how you would create the person's shadow, naming the layer order, blend mode, and how you would make the shadow fade with distance.
Show answer
Duplicate the person layer and name it Shadow. Place it below the original person layer. Make the copy near black, then use Free Transform to skew and shorten it so it falls toward the lower right from the feet, matching the scene's direction. Set the blend mode to Multiply and the opacity to about 40–60%. Apply a Gaussian blur, moderate in amount because the scene's shadows are soft. Add a layer mask to the Shadow layer and drag a black-to-white linear gradient so the shadow is fully visible at the feet and fades to hidden at its far end. Then paint a small contact shadow on a separate Multiply layer under the feet.
Exercise
After adding the shadow, the subject still looks pasted on. The shadow direction is correct. Name three further checks from the realism list and one fix for each.
Show answer
Any three of the following. Edge quality: remove a light fringe with Layer > Matting > Defringe. Sharpness: blur the sharper layer slightly so both match. Noise: add 1–3% monochromatic noise to the cleaner layer. Color cast: add a clipped Color Balance or Photo Filter layer so the subject's color agrees with the scene. Scale: redo Free Transform so the subject's size fits its distance.