├── .github └── workflows │ └── build.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE ├── README.md ├── assets ├── candle.png └── dungeon_tiles.png ├── examples ├── basic.rs ├── dungeon.rs ├── minimap.rs ├── multiple.rs └── occlusion.rs ├── src ├── lib.rs ├── light.rs ├── occluder.rs ├── plugin.rs └── render │ ├── empty_buffer.rs │ ├── extract.rs │ ├── light_map │ ├── light_map.wgsl │ ├── mod.rs │ ├── node.rs │ ├── pipeline.rs │ └── prepare.rs │ ├── lighting │ ├── lighting.wgsl │ ├── mod.rs │ ├── node.rs │ ├── pipeline.rs │ └── prepare.rs │ ├── mod.rs │ ├── sdf │ ├── mod.rs │ ├── node.rs │ ├── pipeline.rs │ ├── prepare.rs │ └── sdf.wgsl │ ├── types.wgsl │ └── view_transformations.wgsl └── static └── dungeon.gif /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | Cargo.lock 3 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/README.md -------------------------------------------------------------------------------- /assets/candle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/assets/candle.png -------------------------------------------------------------------------------- /assets/dungeon_tiles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/assets/dungeon_tiles.png -------------------------------------------------------------------------------- /examples/basic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/examples/basic.rs -------------------------------------------------------------------------------- /examples/dungeon.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/examples/dungeon.rs -------------------------------------------------------------------------------- /examples/minimap.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/examples/minimap.rs -------------------------------------------------------------------------------- /examples/multiple.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/examples/multiple.rs -------------------------------------------------------------------------------- /examples/occlusion.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/examples/occlusion.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/light.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/light.rs -------------------------------------------------------------------------------- /src/occluder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/occluder.rs -------------------------------------------------------------------------------- /src/plugin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/plugin.rs -------------------------------------------------------------------------------- /src/render/empty_buffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/empty_buffer.rs -------------------------------------------------------------------------------- /src/render/extract.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/extract.rs -------------------------------------------------------------------------------- /src/render/light_map/light_map.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/light_map/light_map.wgsl -------------------------------------------------------------------------------- /src/render/light_map/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/light_map/mod.rs -------------------------------------------------------------------------------- /src/render/light_map/node.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/light_map/node.rs -------------------------------------------------------------------------------- /src/render/light_map/pipeline.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/light_map/pipeline.rs -------------------------------------------------------------------------------- /src/render/light_map/prepare.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/light_map/prepare.rs -------------------------------------------------------------------------------- /src/render/lighting/lighting.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/lighting/lighting.wgsl -------------------------------------------------------------------------------- /src/render/lighting/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/lighting/mod.rs -------------------------------------------------------------------------------- /src/render/lighting/node.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/lighting/node.rs -------------------------------------------------------------------------------- /src/render/lighting/pipeline.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/lighting/pipeline.rs -------------------------------------------------------------------------------- /src/render/lighting/prepare.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/lighting/prepare.rs -------------------------------------------------------------------------------- /src/render/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/mod.rs -------------------------------------------------------------------------------- /src/render/sdf/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/sdf/mod.rs -------------------------------------------------------------------------------- /src/render/sdf/node.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/sdf/node.rs -------------------------------------------------------------------------------- /src/render/sdf/pipeline.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/sdf/pipeline.rs -------------------------------------------------------------------------------- /src/render/sdf/prepare.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/sdf/prepare.rs -------------------------------------------------------------------------------- /src/render/sdf/sdf.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/sdf/sdf.wgsl -------------------------------------------------------------------------------- /src/render/types.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/types.wgsl -------------------------------------------------------------------------------- /src/render/view_transformations.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/src/render/view_transformations.wgsl -------------------------------------------------------------------------------- /static/dungeon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgayfer/bevy_light_2d/HEAD/static/dungeon.gif --------------------------------------------------------------------------------