Skip to main content

URP Realtime Shadows for Additional Lights

info

Supported from version 7.3.0 and only on WebGL 2

In Unity URP, additional lights are all light sources other than the main light.

images-medium

Minimum Setup

  1. Open your URP Render Pipeline Asset (Project Settings → Graphics → Scriptable Render Pipeline Settings or the asset directly in the Project window).

    1. Set Additional Lights rendering mode to Per Pixel.
    2. Set Per Object Limit to any value higher than 0.
    3. Enable Additional Light Shadows.

images-medium

  1. In your scene, select each Light that should cast shadows:

    1. In the Light component activate Shadow Type.

images-medium

  1. Open the Unity Playworks Plugin window and enable shadows:

    1. Check Realtime Shadows in Settings → Advanced.
    2. Set WebGL 2.0 (in Unity 6 always active).

images-medium

Limitations

ParameterUnityStandard GPUsLow-end GPUs*
Additional lights per camera2563216
Additional lights per object888
Max shadow-casting lights per camera≥42max 5max 2
Point light shadowsYesYesYes
Spot light shadowsYesNoNo
Directional light shadowsNoNoNo
Soft shadowsYesNoNo

*Low-end devices are detected based on the device's WebGL capabilities and are automatically recognized by the Playworks Plugin.

Performance Notes

Each shadow-casting Light can add significant rendering cost.

Recommendations to reduce performance impact:

  • Limit the number of shadow-casting Lights.
  • Use a lower Shadow Resolution Tier (Low or Medium).
  • Use a smaller Shadow Atlas Resolution in the URP asset.
  • Disable Cast Shadows on Point Lights that do not meaningfully contribute to the visual result.