Skip to content

Realtime 2D Raytracing in Unity using Signed Distance Fields 💡

License

Notifications You must be signed in to change notification settings

Robert-K/light2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Light2D

Realtime 2D Raytracing in Unity 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 file for details.

forthebadge forthebadge

About

Realtime 2D Raytracing in Unity using Signed Distance Fields 💡

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published