Auto Shadows and Highlights in Blender Grease Pencil

Automating shadows and highlights in Blender's Grease Pencil allows 2D animators to create dynamic, lit scenes without manually drawing tone changes on every individual frame. By utilizing Grease Pencil modifiers such as Rim and Shadow in conjunction with scene lighting objects, you can cast real-time, non-destructive highlights and shadows over your line art and fills. This workflow speeds up post-production, maintains visual consistency across complex animations, and allows for instant global lighting adjustments.

1. Scene and Lighting Setup

Before applying modifiers, set up the reference points for your lighting:

  1. Ensure your 2D animation is organized across distinct Grease Pencil layers (e.g., Fills, Lines).
  2. Add a lighting reference object to your scene. Press Shift + A and select Light > Point or Sun, or use an Empty object to act as the lighting anchor.
  3. Position the light object relative to your 2D character where you want the primary light source to originate.

2. Generating Automated Highlights with the Rim Modifier

The Rim modifier generates an offset highlight along the contour of your Grease Pencil strokes based on an external light or object.

  1. Select your Grease Pencil object and navigate to the Modifier Properties tab (wrench icon).
  2. Click Add Modifier and select Rim.
  3. In the modifier settings, set the Light/Object field to the Point light or Empty created in step 1.
  4. Set the Mode to choose whether the rim light reacts to an object or a directional light.
  5. Adjust the Offset to control the width and depth of the highlight edge.
  6. Under the Color section, choose the highlight tint and set the Blend Mode (such as Add or Screen) to naturally integrate the highlight with the base colors.
  7. Use the Influence sub-panel to restrict the highlight to specific layers or materials, preventing highlights from affecting outlines or background elements.

3. Generating Automated Shadows with the Shadow Modifier

To create automated cast or directional shading across your character:

  1. In the Modifier Properties tab, click Add Modifier and select Shadow.
  2. Set the Object field to your scene's light source or Empty.
  3. Adjust the Offset and Scale to project the duplicated silhouette away from the light source.
  4. Set the shadow color (typically a dark purple, blue, or neutral black) and lower the opacity slider for a soft shading effect.
  5. In the Influence panel, assign the modifier strictly to the Fills layer to ensure the shadow does not obscure exterior line art.

4. Refining Results with Layer Masking and Blur Modifiers

To keep automated lighting strictly within the bounds of your character fills:

  1. Enable Masking within the Grease Pencil Layer settings. Mask your shadow and rim effects to the base fill layer so that secondary shadows do not spill into empty canvas space.
  2. Add a Blur Modifier below your Rim or Shadow modifier in the stack if you prefer soft ambient lighting over a sharp, hard-edged cel-shaded look.
  3. Adjust the order in the modifier stack: modifiers are evaluated from top to bottom, so place color adjustments and distortions after the lighting modifiers.