Pixel Perfect Shadow


Pixel Perfect Shadows: Sprite shadow prefab + shader for crisp, pixel-aligned projected shadows with adjustable direction, stretch, and color among many other settings.


by Ferran Pla


Price History +

Pixel Perfect Shadows URP2D

Pixel Perfect Shadows is a lightweight solution for adding crisp, pixel-aligned projected shadows to sprites. It’s built around a simple workflow: drop in a prefab, assign your SpriteRenderer, and tune a few intuitive settings to match your art style and world scale.

This asset is designed for top-down / face-camera / 2D stylized games where clean, stable shadows help sprites feel grounded without breaking pixel clarity. It can also work on other settings if set up properly.


Key Features

  • Drop-in prefab workflow: add the shadow prefab and assign a SpriteRenderer
  • Pixel-aligned results: stable shadows designed to match pixel-art aesthetics
  • Directional projection controls: drive shadow direction from a light source or vector
  • Side shadow projection: if a side secondary texture is added, the shadow will be 4 directional, showing the side projection when adequate. Check images for more details.
  • Demo scene included: example setup and sample content to verify behavior quickly
  • Clean package structure: runtime and demo content separated for easy integration

Getting Started (30 seconds)

  1. Import the package into a project 
  2. Drag ShadowQuad prefab into a sprite in the scene
  3. Assign your SpriteRenderer in the ShadowQuad component and Reference light object.
  4. Adjust direction, stretch, and opacity to match your lighting

Support


If you need help integrating the asset, contact: ferdison12@gmail.com


Please include Unity version, URP version, and a screenshot of your inspector setup.