Solution Overview
This solution implements planar shadows based on the URP framework.
Excellent Performance
In terms of performance, it consumes very few resources, supports batching, and has extremely low Shader overhead, making it highly suitable for mobile platforms.
Ideal for Low-End Configurations
Even if you intend to use the more expensive ShadowMap technology for shadow effects, this solution can be utilized for lower graphics quality settings, ensuring that even low-end configurations can display shadow effects.
Supports Three Types of Shadows
• Ground Shadows - Shadows are rendered uniformly at a specified height, suitable for scenes with no height differences.
• Pivot Shadows - Shadows are rendered at the object's center position, suitable for scenes with height differences.
• Raycast Shadows - Shadow positions are determined through ray detection, suitable for characters that need to jump in the scene.
Full Source Code
• Complete C# scripts & shaders
• Fully modifiable