A production-ready implementation of a classic planar shadows technique for modern URP projects.Unity 6+ | URP 17+Render Graph API onlyNo Compatibility Mode supportFlat Shadows is a production-ready impementation of a classic real-time rendering technique that projects 3D-object geometry onto a flat surface.Targeted for stylized games—especially projects that intentionally aim for a retro or old-school visual style.✅ Features:- Always sharp, crisp shadows with no blur, aliasing, hard edge holes, peter-panning, shadow acne, or cascade seams.- Handles common implementation challenges such as proper culling, vertex deformation, and alpha clipping.- Two shadow color modes: physically-inspired lighting approximation or simple artistic control.- Supports freely oriented floor planes.- Supports multiple directional lights.- Several setup options for balancing simplicity and performance.- Works alongside Unity’s built-in shadow system.- No dependecies from other assets.- Demo scene and complete user guide included.⚠️ Considerations:- This is not a replacement for traditional shadow mapping. By design, these shadows are only suitable for relatively flat environments with minimal height variation.- This technique is bandwidth-friendly and can improve performance on tile-based GPUs. However, on platforms where toggling shadow maps or depth textures don't cause significant FPS drops, the performance boost is unlikely to be noticeable.❌ Limitations:- Only directional lights- No stereo rendering support (XR / VR)Some third-party assets were used for the demonstration screenshots and are not included in the package:Car Kit by Kenney: https://kenney.nl/assets/car-kitLicensed under CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/Suburb Assets pt1 by eracoon: https://opengameart.org/content/suburb-asset-pt1Licensed under CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/Low Poly Forest Pack by Ajay Karat | Devil's Work.shop: https://devilsworkshop.itch.io/lowpoly-forest-packLicensed under CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/The included demo scene was made specifically for this package. It should not be treated as third-party asset and is covered by the same license as the rest of the included content.The demo scene features low poly meshes and uses vertex colors instead of textures.Flat Shadows add extra render passes to draw objects that cast and receive shadows. They utilize user-configurable stencil tests, replacement shaders/materials, and custom shader subgraphs to control how these objects are rendered.Tested on DirectX 11 & 12, Vulkan, OpenGL Core & ES 3.0.

