rendering/shadows

Enable per-prefab 2D sprites to cast dynamic shadows in Unity URP scenes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill rendering-shadows
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rendering/shadows
Source: https://github.com/Silac1995/My-World-Isekai-Unity/tree/main/.agent/skills/rendering/shadows
Command: npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill rendering-shadows

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

2D sprite cast-shadow system enabling dynamic, per-prefab shadow casting in Unity URP, with DayNightCycle integration and interior occluders.

Core Features & Use Cases

  • Per-prefab shadow casting: toggle shadows on individual sprites/prefabs.
  • DayNightCycle-driven shadow strength: adjusts shadow intensity across the day.
  • Interior occluders: supports ShadowsOnlyRoof on interior prefabs for realistic shading.
  • URP shader integration: relies on Sprite-Lit-ShadowCaster shader and corresponding materials.

Quick Start

Apply the Sprite-Lit-ShadowCaster materials to your sprite renderers, enable shadowCastingMode On, and configure DayNightCycle and interior occluders as needed.

Frequently Asked Questions about rendering/shadows

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add dynamic 2D sprite shadows in Unity URP?

You can enable per-prefab 2D sprite shadows in URP by applying the Sprite-Lit-ShadowCaster materials to your sprite renderers and toggling shadowCastingMode on. This provides dynamic shadow casting for individual prefabs.

Can I control shadow strength with a day night cycle in Unity URP?

Yes, you can control shadow strength with a day night cycle in Unity URP by using the provided sun hook. This integration dynamically adjusts shadow intensity across the day based on your DayNightCycle configuration.

Does Unity URP support per-prefab sprite shadow casting?

Yes, Unity URP supports per-prefab sprite shadow casting through this system. It provides per-prefab flags allowing you to toggle shadows on individual sprites for both new and existing prefabs.

How do I set up interior occluders for 2D sprite shadows?

To set up interior occluders for 2D sprite shadows, configure ShadowsOnlyRoof occluders on your interior prefabs. This setup provides realistic shading by properly occluding light within interior spaces.

What are the limitations of 2D sprite shadows in Unity URP?

A key limitation of 2D sprite shadows in Unity URP is the reliance on the specific Sprite-Lit-ShadowCaster shader and corresponding materials. Your project must use URP to support this dynamic shadow casting approach.