https://github.com/robert-k/light2d
Realtime 2D Raytracing in Unity using Signed Distance Fields 💡
https://github.com/robert-k/light2d
2d-raytracing realtime-rendering signed-distance-fields unity
Last synced: about 1 year ago
JSON representation
Realtime 2D Raytracing in Unity using Signed Distance Fields 💡
- Host: GitHub
- URL: https://github.com/robert-k/light2d
- Owner: Robert-K
- License: mit
- Created: 2018-11-21T23:11:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-02T12:50:37.000Z (almost 7 years ago)
- Last Synced: 2025-03-29T07:51:29.275Z (about 1 year ago)
- Topics: 2d-raytracing, realtime-rendering, signed-distance-fields, unity
- Language: ShaderLab
- Homepage:
- Size: 2.98 MB
- Stars: 82
- Watchers: 4
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Light2D
Realtime 2D Raytracing in [Unity](https://unity3d.com/) using Signed Distance Fields
## Screenshots

## Features
- Realtime raytracing on average GPUs!
- Optimized with Jump Flood Voronoi algorithm for distance field calculation in O(log n)
- Screen space effect - supports all kinds of models/sprites/other effects
- Individual objects/layers can be in- or excluded
- Easy to set up & includes examples
### WIP! Documentation coming soon... (maybe)
## ToDo
- Allow blending RenderTextures and Light2D output
- Enable variable light texture resolutions to improve performance
- Implement nonemissive objects that still contribute to GI
- Implement subsurface scattering
- Implement Light bounces
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
[](https://forthebadge.com) [](https://forthebadge.com)