Sub topic 11
Fading the Reflection with a Gradient Mask
This chapter covers the step that turns a flipped copy into a believable reflection: a gradient layer mask that fades the copy with distance from the subject. It assumes you can already do the following:
- Work with layers, layer opacity and layer masks.
- Make selections.
- Flip a duplicated layer to build a basic reflection (the previous chapter).
Why a reflection must fade
A flipped duplicate at constant opacity looks like a mirror image pasted under the subject. Real reflections weaken with distance from the reflected object, for two reasons:
- Viewing angle. Most floors, tabletops and water surfaces reflect more strongly at a shallow viewing angle. They reflect less when you look straight down at them.
- Surface imperfections. Dust, micro-scratches and ripples scatter light. The farther the reflected light travels, the more of the image is lost.
The result is a reflection that is strongest where the subject touches the surface and fades to nothing further down. A gradient mask reproduces this fade.
Why a mask and not just opacity
Layer opacity lowers the whole layer evenly. A layer mask can vary the visibility pixel by pixel. A mask has these properties:
- White areas show the layer fully.
- Black areas hide the layer.
- Grays show it partially. A 50% gray shows the layer at about 50%.
A gradient from white to black on the mask gives a smooth fade. The mask is also non-destructive. You can repaint it or change its gradient at any time without touching the reflection pixels.
You still use opacity, but for a different job. The mask controls how the reflection fades. Opacity sets its overall strength. A typical split is a mask that fades to fully black and a layer opacity between 30% and 60%.
Setting up the starting point
Before you add the mask, check that the reflection layer meets these conditions:
- It is a flipped duplicate of the subject, placed so the two bottom edges touch.
- It is on its own layer, below or directly above the original, with a clear name such as
Subject reflection. - If you plan to distort it later, convert it to a Smart Object first so the transform stays editable.
Select the reflection layer in the Layers panel. Then click the Add Layer Mask button at the bottom of the panel. A white mask thumbnail appears next to the layer thumbnail. A white mask hides nothing, so the image does not change yet.
Building the gradient step by step
- Click the mask thumbnail so it is the active target. A thin outline around the thumbnail shows that edits go to the mask, not the pixels.
- Press
Dto reset the foreground and background colors to black and white. In a mask, white reveals and black hides. - Choose the Gradient Tool (
G). In the Options bar, open the gradient picker and select Foreground to Background. Make sure the gradient type is Linear. - Hold
Shiftto constrain the drag to a straight vertical line. Drag from the contact edge, where the subject meets the surface, down toward the bottom of the reflection. - Release the mouse button. The reflection is now fully visible at the top and fades out toward the bottom.
If you get the opposite result, with the fade strongest at the top, the foreground and background colors were reversed. Press Ctrl+Z (Cmd+Z on Mac) and press X to swap them. Then drag again. You can also select the mask and press Ctrl+I (Cmd+I) to invert it.
Controlling the length and shape of the fade
Where you start and stop the drag decides how the fade looks.
| Drag choice | Effect |
|---|---|
| Short drag, about the height of a third of the subject | Fast fade. Suits matte or rough surfaces and polished floors seen at a steep angle. |
| Long drag, the full height of the reflection | Slow fade. Suits very glossy surfaces such as glass or calm water. |
| Start the drag slightly below the contact edge | A short band near the subject stays fully visible before the fade begins. |
| Start the drag above the contact edge | The reflection is already partly faded at the contact edge. This often looks wrong, because reflections are strongest at the contact point. |
You can redraw the gradient as many times as you like. Each new drag replaces the previous mask content, as long as the Gradient Tool's blend mode is Normal and its opacity is 100%.
Fine-tuning with the Properties panel
Select the mask and open Window > Properties. These controls affect the mask without repainting it:
- Density lowers how much the mask hides. Reducing the density of a mask that is mostly black lets some of the reflection show through everywhere.
- Feather blurs the mask edge. This is useful when the mask contains hard shapes, but a linear gradient is already smooth.
Using Gradient Editor for non-linear fades
Light does not always fade in a straight line. To shape the falloff, click the gradient preview in the Options bar to open the Gradient Editor. Then do the following:
- Click the midpoint diamond between the two color stops.
- Drag it toward the black end to keep the reflection visible for longer, then drop off quickly.
- Drag it toward the white end for a quick initial fade followed by a long faint tail.
You can also add a third stop. For example, use white at 0%, mid-gray at 35% and black at 100%. This holds a visible reflection near the contact edge and then gives a long, faint trail. Click OK and drag the gradient on the mask as before.
Checking your work
Press \ (backslash) with the mask selected to show the mask as a red overlay. Alt-click (Option-click on Mac) the mask thumbnail to view the mask alone in grayscale. A clean result has no visible banding, which would appear as stepped stripes in the gray.
Banding can show up on large, smooth gradients in 8-bit documents. Two ways to reduce it are:
- Work in 16-bit mode (Image > Mode > 16 Bits/Channel).
- Add a very small amount of noise to the mask (Filter > Noise > Add Noise, about 1% to 2%, Gaussian, Monochromatic) while the mask is selected.
A complete example in a diagram
The flow below shows the order of operations, including the checkpoints.
Common problems and fixes
- The gradient changes the reflection pixels instead of the mask. The layer thumbnail was active, not the mask thumbnail. Undo, click the mask thumbnail and drag again.
- The fade is uneven or tilted. You did not hold
Shift. Redraw withShiftheld. - A visible line appears where the subject meets the reflection. The flip left a gap or an overlap of a few pixels. Nudge the reflection with the arrow keys, or zoom in to 200% and align the edges.
- The reflection fades out too soon. The drag was too short. Drag farther, or move the Gradient Editor midpoint toward the black end.
- The reflection looks too strong even though the mask is correct. Lower the layer opacity, not the mask. Keeping the roles separate makes later adjustments easier.
- The mask is linked to the layer, and the mask moves when you transform. This is the default link icon between the thumbnails. Click the chain icon to unlink them if you want to move the reflection without moving the mask.
Adjusting for the subject's shape
Subjects with uneven bottoms, such as a chair with four legs, produce reflections of different lengths. A single linear gradient fades them all at the same rate, which is usually acceptable. For a more careful result:
- Select the mask.
- Choose a soft brush at low flow (about 10% to 20%).
- Paint with black over the parts of the reflection that are farther from the surface contact, such as the top of the chair seen reflected below the legs.
Because the mask is separate from the pixels, any painting mistake is fixed by painting with white.
Summary of the technique
A faded reflection uses three layers of control. Use the gradient mask to set the shape of the fade. Use layer opacity to set overall strength. Use blur or distortion on the reflection layer, covered in the next chapter, to match the surface type. Keeping each job in its own control makes every change reversible.
Exercise
You drag a Foreground to Background gradient on the reflection layer's mask and find that the reflection is invisible near the subject and fully visible at the bottom. Name two ways to correct this without repainting the reflection pixels.
Show answer
The fade is inverted. Either undo the drag, press X to swap the foreground and background colors, and drag again from the contact edge downward. Or select the mask and press Ctrl+I (Cmd+I on Mac) to invert it. Both change only the mask, so the reflection pixels stay untouched.
Exercise
A client says the reflection of a glossy black table looks "too strong, but I like how it fades." Which control should you change, the gradient mask or the layer opacity, and why?
Show answer
Change the layer opacity. The mask defines the shape of the fade, which the client likes. Opacity sets overall strength and scales the whole reflection evenly without altering that shape.