A GPU Ray-marching solution for 2D shadow casting in Unity.
This project is made for practice purposes, please do not use this for any actual game development.
The older version of this project had a serious bug, so I spent some time cleaning those up, and here it is.
- Put "ShadowCaster2DCamera" on your rendering camera
- Put "ShadowCaster2DGPU" on an empty GameObject
- Remember to adjust their relative depth!