light2D icon indicating copy to clipboard operation
light2D copied to clipboard

Realtime 2D Raytracing in Unity using Signed Distance Fields 💡

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