Experiment with computing 2D shading, lighting and shadows with Bevy Engine
Experiment with computing 2D shading, lighting and shadows with Bevy Engine
Beware! This repo is heavily under construction and a lot of things may change.
Experimental dynamic 2D global illumination system for Bevy, based on SDF ray-marching and screen space irradiance cache probes.
cargo run --example minimal
cargo run --example krypta
cargo run --example movementImplementation is based on several approaches:
The main performance gain is coming from computing value of only 1 / 64 number of pixels (for 8x8 probe size). The rest of the pixels are interpolated from the nearest probes.
cargo run --example kryptaOptimizations
Features
Address limitations
Others
| bevy | bevy_magic_light_2d |
|---|---|
0.16 |
0.10 |
0.15 |
0.9 |
0.14 |
0.8 |
Copyright 2022, 2023 Vladimir Zaytsev
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.No open issues yet, or sync has not completed.