Sub topic 2
The Drop Shadow layer style: quick results and where it falls short
This chapter assumes you can create and reorder layers, change layer opacity, make selections, and use the Move and Transform tools.
Drop Shadow: a fast first pass
Layer > Layer Style > Drop Shadow adds a shadow behind a layer's pixels. You set the angle, distance, size, and opacity, and Photoshop draws an even, uniform offset. It works well for flat graphics, buttons, and text on plain backgrounds.
It falls short for photo compositing. The shadow has one direction and one softness. A real shadow on a floor stretches and softens as it moves away from the object, follows the ground's perspective, and is darkest where the object touches the ground. Drop Shadow does none of this.
Contact shadows: grounding the subject
A contact shadow is the dark area where the object meets the ground. Create a layer below the subject, paint a small, soft black area at the base, set its blend mode to Multiply, and lower its opacity to 60 to 80 percent. Then apply Filter > Blur > Gaussian Blur at 4 to 8 pixels.
Cast shadow along the ground plane
Duplicate the subject layer, fill its pixels with black, and use Edit > Transform > Distort or Perspective to lay the copy flat on the ground, pointing away from the light. Set the layer to Multiply.
For a quick check of the blur step, this script applies the same settings to a layer named "Shadow":
// Assumes a pixel layer named "Shadow" already exists in the document
var doc = app.activeDocument;
var shadow = doc.artLayers.getByName("Shadow");
shadow.blendMode = BlendMode.MULTIPLY;
shadow.opacity = 55;
shadow.applyGaussianBlur(12);Softening shadows with distance
A cast shadow should be sharp near the object and soft farther away. Add a layer mask to the shadow layer. With the Gradient tool set to black-to-white, drag from the object's base outward. The shadow then fades as it moves away from the subject.
Exercise
Why does a Drop Shadow look wrong on a photographed floor, and which two shadow properties does a hand-built shadow let you control that Drop Shadow does not?
Show answer
Drop Shadow applies one uniform offset and one softness, so it cannot follow ground perspective or fade with distance. A hand-built shadow lets you control its perspective shape (through Distort or Perspective) and its softness at each point (through a gradient mask over blur).