Skip to content

A GPU Ray-marching solution for 2D shadow casting in Unity.

License

Notifications You must be signed in to change notification settings

alan0201tw/Unity_2DShadow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A GPU Ray-marching solution for 2D shadow casting in Unity.

Disclaimer

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.

How to use?

  1. Put "ShadowCaster2DCamera" on your rendering camera
  2. Put "ShadowCaster2DGPU" on an empty GameObject
  3. Remember to adjust their relative depth!

About

A GPU Ray-marching solution for 2D shadow casting in Unity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages