Skip to content

Shadow Color

The Shadow Color feature allows you to customize the color of the main light’s shadows, moving beyond the default black shadows that Unity provides. It applies to the materials that have the effect on, so turn it on for every surface where a shadow should land. This can dramatically enhance the visual style of your game, creating more stylized or vibrant environments with colored shadows that complement your art direction.

The same scene with Custom Shadow Color off, shadows dark, and on, with the shadow color changing

To use this feature:

  1. Enable the Custom Shadow Color effect in the Material Inspector of objects where you want colored shadows to appear:
Custom Shadow Color ticked in the Material Inspector, with its note asking for the ShadowsConfigurator component
  1. Add the Shadows Configurator component to any active GameObject in your scene and pick the Shadow Color:
The Shadows Configurator component with its Shadow Color and Update Every Frame fields

The color works as a floor: the main light’s shading never gets darker than it. So pick a dark color, because a bright one also lifts surfaces that are simply facing away from the sun. The floor applies per color channel, so a saturated color also tints lit surfaces that are darker than it in its strongest channel: a purple shade turns warm ground lavender even in full light. For a strong shade color in a warm scene, a Toon Ramp’s dark end gives each material its own shade instead; see Toon and Cel Shading in Unity URP.

The color’s alpha sets how much of that floor you get. At 1 it’s the full floor. Lower values fade the floor out, and what’s left is the light falling in shadow multiplied by the color: black keeps Unity’s normal shadows, and any other color tints them. URP and Built-in treat alpha the same way.

In a build the color is applied when the component is enabled. If you change it from script while the game runs, tick Update Every Frame.