light2d-rs
                                
                                 light2d-rs copied to clipboard
                                
                                    light2d-rs copied to clipboard
                            
                            
                            
                        Render light with Rust
light2d-rs
Light rendering in 2D with Rust
This project is inspired by miloyip's Render light with C series (Chinese) and follows his idea generally, but I made some changes:
- Used rayon to run tracing in parallel.
- Replaced ray marching with ray tracing to reduce the time complexity. (You can still find the ray marching version at the master branch.)
- Applied the Beer-Lambert law for paths inside media only.
Examples
 
 
 
 
