#light #illumination #shader #graphics #bevy

solis_2d

2D global illumination with optimized radiance cascade

2 releases

0.1.1 Oct 12, 2024
0.1.0 Oct 12, 2024

#536 in Graphics APIs

MIT/Apache

700KB
1K SLoC

Rust 831 SLoC // 0.0% comments WebGPU Shader Language 253 SLoC

Solis 2D

License: MIT or Apache 2.0 Crate

2D global illumination with radiance cascades.

title img

Featuring realistic 2D light, shadow and normal map calculation using a optimized version of radiance cascade.

This crate is currently work in progress.

Aiming to be compatible with all targets.

Checkout out the examples

cargo run --example light --features=dev
cargo run --example simple --features=dev

https://github.com/user-attachments/assets/858d7842-aed2-46b7-b001-7b87aa3e8ac0

https://github.com/user-attachments/assets/5c98a8c4-ae5b-4019-b147-ceba065f074b

Amazing resources:

Gm Shader Blog

Json's RC Blog

Dependencies

~38–75MB
~1.5M SLoC