Sub topic 9
Adding Shadows and Highlights for Realism
A mockup looks fake when the artwork seems to float on top of the scene. The placeholder smart object holds the design, but the scene's lighting has to act on that design. This chapter shows how to add shadows and highlights above the placeholder so they stay in place when you swap artwork.
This chapter assumes you can build layer groups and masks, you know the basic blend modes (Multiply, Screen, Overlay, Soft Light), and you already have a placeholder fitted to a surface from the previous chapter.
Why the Artwork Looks Flat
Flat artwork is uniformly lit. A real surface is not. Light falls off across it, creases catch highlights, and nearby objects cast shadows. Three things usually go missing:
- Surface shading. Soft gradients of light and dark across the surface.
- Texture. Paper grain, fabric weave, or the sheen of a coated surface.
- Contact shadows. Dark, sharp areas where the object touches another surface.
The goal is to place these effects in separate layers above the placeholder, so the placeholder remains a clean container for the design.
Layer Order That Survives Replacement
Replace Contents only changes what is inside the smart object. Every layer outside it stays exactly as it is. So build the realism layers outside the placeholder, in a stack like this:
- Highlights (top)
- Shadows
- Texture or surface detail
- Placeholder smart object ("Artwork")
- Background scene (bottom)
Put the three effect layers into a group named "Lighting". This makes it easy to turn all the realism on and off to check your work.
Clipping Effects to the Artwork
If a shadow layer sits above the placeholder, it will darken the whole canvas, not only the design. A clipping mask limits a layer to the visible pixels of the layer directly beneath it.
To clip a layer:
- Select the effect layer.
- Choose Layer > Create Clipping Mask, or press Alt+Ctrl+G (Option+Command+G on Mac).
Photoshop shows a small arrow on the layer and indents it. Clipped layers affect only the shape of the placeholder.
Be careful about the following:
- Clipping works on a layer's transparency. A placeholder with a transformed (perspective-fitted) shape clips correctly, because the smart object's bounds follow the transform.
- A clipped stack is relative to the layer beneath the base. If you put an unclipped layer between the base and the clipped layers, the chain breaks. Keep clipped layers consecutive.
- Effects you want to spill outside the artwork, such as a shadow cast onto the table, must not be clipped. Place them below the placeholder instead, above the background.
Building Shadows with Multiply
Multiply darkens whatever is underneath it. White has no effect, and darker values darken more. That makes it the standard blend mode for shadows.
Soft Shading Across the Surface
- Create a new empty layer above the placeholder and clip it.
- Set the blend mode to Multiply.
- Choose the Brush tool with a large, soft brush (hardness 0%) and a low opacity, around 10 to 20%.
- Paint with a mid-gray or a dark color sampled from the scene, building up darkness slowly near the edges where the light falls off.
Sampling a dark tone from the scene, rather than using pure black, keeps the shadow in harmony with the room's color. Pure black often looks dirty and gray.
Contact Shadows on the Table
A contact shadow is darkest and sharpest where two surfaces meet, then fades with distance.
- Select the layer below the placeholder, and add a new layer above the background.
- Set it to Multiply.
- With the Lasso tool, make a selection along the base of the object, then use Select > Modify > Feather (2 to 8 pixels, depending on image size).
- Fill the selection with a dark tone.
- Lower the layer opacity until the shadow looks natural, usually between 30% and 60%.
For a longer cast shadow, duplicate the contact shadow, distort it to match the light direction, and apply a larger Gaussian Blur. A longer shadow should be softer and lighter than the contact shadow.
Building Highlights with Screen and Soft Light
Highlights follow the same logic in reverse. Screen lightens, and black has no effect.
- Screen adds light. Use it for glints on glossy surfaces or a bright edge. Paint with a pale tone at low opacity.
- Soft Light or Overlay adds contrast. A layer filled with 50% gray is neutral in these modes, so painting lighter or darker than 50% gray brightens or darkens gently.
A practical trick is the "dodge and burn" layer: fill a new layer with 50% gray, set it to Soft Light, clip it, and paint with white and black at low opacity. This is easily editable and does not touch the artwork.
| Goal | Blend mode | Paint with | Typical opacity |
|---|---|---|---|
| Surface shading | Multiply | Dark tone sampled from scene | 10 to 30% |
| Contact shadow | Multiply | Dark tone, feathered selection | 30 to 60% |
| Glossy glint | Screen | Pale tone or white | 20 to 50% |
| Gentle contrast | Soft Light | White and black on 50% gray | 30 to 100% |
| Paper or fabric grain | Overlay | Texture image | 20 to 60% |
Reusing the Scene's Own Lighting
The most realistic results come from lighting that already exists in the photo. Instead of painting everything, borrow it.
- Duplicate the background scene layer and move the copy above the placeholder.
- Convert the copy to grayscale with Image > Adjustments > Desaturate, or add a Black & White adjustment layer clipped to it.
- Set the blend mode to Multiply or Soft Light.
- Clip it to the placeholder, then use a layer mask or Levels to remove everything except the light and dark variations you need.
This carries over real shadows, wrinkles, and gloss from the photo itself. If the surface has strong texture, such as a crumpled bag, this gives far better results than painted shading.
Another common approach is a displacement map. It uses a grayscale version of the surface to bend the artwork over folds. That technique is separate from simple shading and is outside the scope of this chapter. If your mockup already ships with a displacement file, it is usually applied inside the smart object, so check the original file before you add your own.
Using Smart Filters on the Placeholder
Smart filters applied to the placeholder also persist after Replace Contents. Two filters are useful for realism:
- Gaussian Blur at a small radius (0.3 to 1 pixel) softens razor-sharp digital edges so the design matches a photographed surface.
- Add Noise (1 to 3%, Gaussian, monochromatic) matches the grain of the photo.
Apply them with Filter > Convert for Smart Filters first if the layer is not already a smart object. Because they are smart filters, you can adjust or hide them anytime, and they follow every new design you replace into the placeholder.
Making Realism Work for Many Designs
Your lighting must work with light designs and dark designs. A shadow that looks right on white packaging may vanish on black packaging. Test with at least two extremes:
- A mostly white design.
- A mostly black design.
If the black design looks flat, add a Screen highlight layer, since Multiply cannot darken what is already dark. If the white design looks too gray, reduce the opacity of the shading.
You can also use Blend If in the Layer Style dialog (double-click the layer). Hold Alt (Option) and drag the slider halves on "Underlying Layer" to split them for smooth transitions. This hides a shadow where the artwork is already very dark.
Common Problems
| Problem | Likely cause | Fix |
|---|---|---|
| Shadow darkens the entire scene | Layer is not clipped | Create a clipping mask on the layer |
| Effects vanish after swapping artwork | Effects were placed inside the smart object | Move them outside, into the Lighting group |
| Edges show a bright halo | Artwork edge antialiasing or a feather that is too small | Increase the feather, or contract the selection 1 pixel |
| Black design shows no shadow | Multiply cannot darken black | Add Screen highlights, or use Soft Light |
| Shadow looks dirty gray | Pure black used | Sample a dark tone from the scene |
Checklist
- Effects sit above the placeholder and are grouped in "Lighting".
- Shading layers are clipped. Cast shadows are not clipped and sit below the placeholder.
- Shadows use Multiply with sampled dark tones. Highlights use Screen or Soft Light.
- Smart filters match sharpness and grain to the photo.
- The result is tested with light and dark designs.
Exercise
You added a Multiply shadow layer above your placeholder, but it darkens the table and wall around the product as well. You want the shading only on the product. A cast shadow on the table should remain visible. What do you do with each layer?
Show answer
Clip the shading layer to the placeholder (Layer > Create Clipping Mask), so it affects only the product's visible pixels. Do not clip the cast shadow. Move it below the placeholder and above the background layer, so it can fall on the table outside the product's shape.
Exercise
A client sends a nearly black design. Your Multiply shading is invisible on it. Name two ways to restore a sense of lighting.
Show answer
Add a clipped Screen or Soft Light highlight layer, because Multiply cannot darken pixels that are already black, and lighter tones on top give the surface form. You can also use the scene's own grayscale lighting in Soft Light mode, or adjust Blend If so the shading shows through correctly.