Create a dropshadow only layer

I want to make a white rounded rectangle (which will be used for an in-game alpha mask) and another layer which contains a drop shadow. That way I can do quick export for the two layers. WITHOUT RASTERIZING

I use blue and red to help me provide the contrast to help me debug.

enter image description here

I have a rounded rectangle which I converted to a path.

enter image description here

I’ve created a vector mask where I reversed

enter image description here

When I create the clipping mask I get the following. Which is close to what I want except for the white background as I just wanted the drop shadow with a transparent background.

enter image description here

I think I can do a layer mask but it seems I have to rasterize the path. This is basically what I got when I rasterize.

enter image description here


  1. Create a shape layer in the desired shape and with any colour fill;
  2. Add your drop shadow using Layer Styles;
  3. Make sure that on the Drop Shadow settings, the box ‘Layer Knocks Out Drop Shadow’ is ticked;
  4. In the Layers palette, reduce the layer’s ‘Fill’ property (not Opacity) to 0%.

‘Fill’ functions exactly the same as Opacity, except it doesn’t affect any layer styles you applied.

Source : Link , Question Author : Archimedes Trajano , Answer Author : Vincent

Leave a Comment