Crates.io | bevy_magic_light_2d |
lib.rs | bevy_magic_light_2d |
version | 0.7.0 |
source | src |
created_at | 2024-07-07 11:07:20.384447 |
updated_at | 2024-07-07 11:07:20.384447 |
description | Experiment with computing 2D shading, lighting and shadows with Bevy Engine |
homepage | https://github.com/zaycev/bevy-magic-light-2d |
repository | https://github.com/LeviLovie/bevy-magic-light-2d |
max_upload_size | |
id | 1294733 |
size | 6,442,351 |
[!IMPORTANT]
I'm not the original creator of this library, this fork exists only to publish it to cargo.
The Apache license allows redistributing, but I'm not sure about publishing, so please contact me if you want me to remove it
🚧 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 movement
Implementation 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 krypta
Optimizations
Features
Address limitations
Others
Copyright 2022, 2023 Vladimir Zaytsev <vladimir@xyzw.io>
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.