An unnatural shadow almost always comes down to an edge that's too hard or a direction that's wrong. Starting from a cut-out, this tutorial duplicates the layer, sets the direction with Free Transform, softens it with Gaussian Blur, fades the far end with a gradient mask, and adjusts the light source to match.
1: Prepare the image and duplicate the layer
- Open Online PS → File > Open and pick your cut-out PNG.
- In the Layers panel on the right, right-click the original layer → Duplicate Layer (shortcut Ctrl+J).
- Select the duplicate, right-click → Convert to Smart Object. That way the transform and the filters stay editable later on.
- (Optional) Hide the original layer and keep only the duplicated smart object, so it's easier to judge the shadow.
2: Free Transform to set the shadow direction
- Make sure the duplicated smart object layer is selected.
- Click Edit > Free Transform (or press Ctrl+T).
- In the transform box, drag a corner handle or an edge to skew the image toward the shadow direction (usually down-left or down-right).
It helps to stretch the image 1.5–2× horizontally first, then skew it to the right angle. - Press Enter when it looks right.
Tip: for a more precise angle, type the rotation value straight into the numeric field at the top.
3: Gaussian Blur and Color Overlay
- With the duplicated layer still selected, click Filter > Gaussian Blur.
- Set the radius to 4.9 px in the dialog (adjust slightly for your canvas size) and confirm.
- Then open Layer > Layer Style > Color Overlay.
- Pick pure black (#000000) in the color picker, leave the blending mode on Normal and the opacity at 100%. Confirm.
This turns the duplicated layer into a soft black shadow.
4: Mask the shadow and fade it with a gradient
- With the duplicated layer still selected, click Add Layer Mask at the bottom of the Layers panel (the icon of a circle inside a white rectangle). It creates an all-white mask by default.
- With the mask selected, pick the Gradient tool from the toolbar on the left (shortcut G), set the gradient type to “Linear”, and the colors from black to white.
- On the canvas, drag once from the faintest end of the shadow (away from the cup) toward the end nearest the cup, creating a black-to-white gradient. Black means more transparent; white keeps the original opacity.
- For fine-tuning, paint on the mask with the Brush tool (soft round brush), or adjust the mask's opacity in the Properties panel.
5: Adjust position and opacity
- If the gap between the shadow and the subject doesn't look right, select the shadow layer itself (not the mask) and nudge it with the Move tool (shortcut V).
- In the Opacity slider at the top of the Layers panel, bring the shadow down to 50%–70% — whatever the image needs.
- If the shadow still looks “hard”, go back to step 3 and reduce the Gaussian Blur radius, or fade it further on the mask from step 4.
6: Light source (adding a lighting layer)
- Create a new empty layer below the shadow layer (Layer > New > Layer) and name it “Light Base”.
- Fill it with the Paint Bucket tool (shortcut G) in any color — light gray or pale yellow, say — to set the overall tone of the light.
- Then add a Gradient Overlay layer style to that layer, running in the same direction as the shadow and going from dark to light, to give the light more depth.
- Select the cup (the original layer or the smart object) and add a “Brightness/Contrast” adjustment layer (Layer > New Adjustment Layer > Brightness/Contrast). Lower the brightness to mimic the area shaded by the shadow.
- Right-click that Brightness/Contrast layer → Create Clipping Mask so it only affects the cup.
- Select the mask on that Brightness/Contrast layer and use the Brush tool (soft round brush, flow 10%–20%) to brush a highlight onto the left half of the cup — the side the light comes from — so the lighting reads naturally.
7: Overall color grading and final tweaks
- If the overall saturation is too high, add a “Hue/Saturation” or “Curves” adjustment layer at the very top, pull the saturation down a little, and lift the contrast.
- Try switching the shadow layer's blending mode to “Multiply” or “Soft Light” — sometimes that blends more naturally.
- Check the layer order (bottom to top):
- Background layer (if any)
- Light base layer + Gradient Overlay
- Shadow layer (with blur, Color Overlay, and mask)
- Cup subject layer
- Brightness/Contrast (clipping mask) layer
- Overall color/contrast adjustment layer
- When you're happy, File > Export As > PNG (or JPG) and save it locally.
Summary & common questions
- Shadow length and angle: the length should match the height of the light source — the lower the angle, the longer the shadow.
- How much blur: tune the Gaussian Blur radius to the canvas resolution; at low resolution you can go smaller.
- Gradient mask tip: practise the gradient once on an empty canvas so the direction matches the shadow.
- Color Overlay vs. a direct fill: Color Overlay preserves the original transparency; if you need finer color control, fill the shadow layer with black and fine-tune with “Hue/Saturation”.
- Consistent lighting: every lighting layer must share the same light direction, or the result feels off.
References
- Online PS
- Adobe official documentation
- PS tutorial sites