Crates.io | bevy_magic_light_2d |
lib.rs | bevy_magic_light_2d |
version | 0.8.1 |
source | src |
created_at | 2024-07-07 11:07:20.384447 |
updated_at | 2024-09-04 13:54:27.830759 |
description | Experimental dynamic 2D global illumination system for Bevy, based on SDF ray-marching and screen space irradiance cache probes |
homepage | https://github.com/zaycev/bevy-magic-light-2d |
repository | https://github.com/zaycev/bevy-magic-light-2d |
max_upload_size | |
id | 1294733 |
size | 6,459,442 |
🚧 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.