├── .github └── workflows │ └── rust.yml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── assets ├── shapes_alpha_modes.png ├── shapes_battle.gif ├── shapes_billboard.gif ├── shapes_gallery_3d.gif ├── shapes_parenting.gif └── shapes_render_layers.gif ├── docs ├── LICENSE-APACHE └── LICENSE-MIT ├── examples ├── alpha_mode.rs ├── billboard.rs ├── bloom.rs ├── bundles.rs ├── canvas_basic.rs ├── canvas_bloom.rs ├── canvas_low_res.rs ├── canvas_modes.rs ├── canvas_recursion.rs ├── gallery_2d.rs ├── gallery_3d.rs ├── healthbar_stress_test.rs ├── minimal_2d.rs ├── minimal_3d.rs ├── origin.rs ├── parenting_commands.rs ├── parenting_painter.rs ├── render_layers.rs ├── retained.rs ├── textured.rs └── thickness.rs └── src ├── lib.rs ├── painter ├── canvas.rs ├── child_commands.rs ├── config.rs ├── mod.rs ├── shape_commands.rs └── shape_painter.rs ├── render ├── commands.rs ├── mod.rs ├── pipeline.rs ├── render_2d.rs ├── render_3d.rs └── shaders │ ├── constants.wgsl │ ├── core.wgsl │ └── shapes │ ├── disc.wgsl │ ├── line.wgsl │ ├── ngon.wgsl │ ├── rect.wgsl │ └── tri.wgsl └── shapes ├── disc.rs ├── line.rs ├── mod.rs ├── rectangle.rs ├── regular_polygon.rs └── triangle.rs /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/README.md -------------------------------------------------------------------------------- /assets/shapes_alpha_modes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/assets/shapes_alpha_modes.png -------------------------------------------------------------------------------- /assets/shapes_battle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/assets/shapes_battle.gif -------------------------------------------------------------------------------- /assets/shapes_billboard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/assets/shapes_billboard.gif -------------------------------------------------------------------------------- /assets/shapes_gallery_3d.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/assets/shapes_gallery_3d.gif -------------------------------------------------------------------------------- /assets/shapes_parenting.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/assets/shapes_parenting.gif -------------------------------------------------------------------------------- /assets/shapes_render_layers.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/assets/shapes_render_layers.gif -------------------------------------------------------------------------------- /docs/LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/docs/LICENSE-APACHE -------------------------------------------------------------------------------- /docs/LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/docs/LICENSE-MIT -------------------------------------------------------------------------------- /examples/alpha_mode.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/alpha_mode.rs -------------------------------------------------------------------------------- /examples/billboard.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/billboard.rs -------------------------------------------------------------------------------- /examples/bloom.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/bloom.rs -------------------------------------------------------------------------------- /examples/bundles.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/bundles.rs -------------------------------------------------------------------------------- /examples/canvas_basic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/canvas_basic.rs -------------------------------------------------------------------------------- /examples/canvas_bloom.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/canvas_bloom.rs -------------------------------------------------------------------------------- /examples/canvas_low_res.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/canvas_low_res.rs -------------------------------------------------------------------------------- /examples/canvas_modes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/canvas_modes.rs -------------------------------------------------------------------------------- /examples/canvas_recursion.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/canvas_recursion.rs -------------------------------------------------------------------------------- /examples/gallery_2d.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/gallery_2d.rs -------------------------------------------------------------------------------- /examples/gallery_3d.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/gallery_3d.rs -------------------------------------------------------------------------------- /examples/healthbar_stress_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/healthbar_stress_test.rs -------------------------------------------------------------------------------- /examples/minimal_2d.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/minimal_2d.rs -------------------------------------------------------------------------------- /examples/minimal_3d.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/minimal_3d.rs -------------------------------------------------------------------------------- /examples/origin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/origin.rs -------------------------------------------------------------------------------- /examples/parenting_commands.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/parenting_commands.rs -------------------------------------------------------------------------------- /examples/parenting_painter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/parenting_painter.rs -------------------------------------------------------------------------------- /examples/render_layers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/render_layers.rs -------------------------------------------------------------------------------- /examples/retained.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/retained.rs -------------------------------------------------------------------------------- /examples/textured.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/textured.rs -------------------------------------------------------------------------------- /examples/thickness.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/examples/thickness.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/painter/canvas.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/painter/canvas.rs -------------------------------------------------------------------------------- /src/painter/child_commands.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/painter/child_commands.rs -------------------------------------------------------------------------------- /src/painter/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/painter/config.rs -------------------------------------------------------------------------------- /src/painter/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/painter/mod.rs -------------------------------------------------------------------------------- /src/painter/shape_commands.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/painter/shape_commands.rs -------------------------------------------------------------------------------- /src/painter/shape_painter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/painter/shape_painter.rs -------------------------------------------------------------------------------- /src/render/commands.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/commands.rs -------------------------------------------------------------------------------- /src/render/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/mod.rs -------------------------------------------------------------------------------- /src/render/pipeline.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/pipeline.rs -------------------------------------------------------------------------------- /src/render/render_2d.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/render_2d.rs -------------------------------------------------------------------------------- /src/render/render_3d.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/render_3d.rs -------------------------------------------------------------------------------- /src/render/shaders/constants.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/shaders/constants.wgsl -------------------------------------------------------------------------------- /src/render/shaders/core.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/shaders/core.wgsl -------------------------------------------------------------------------------- /src/render/shaders/shapes/disc.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/shaders/shapes/disc.wgsl -------------------------------------------------------------------------------- /src/render/shaders/shapes/line.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/shaders/shapes/line.wgsl -------------------------------------------------------------------------------- /src/render/shaders/shapes/ngon.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/shaders/shapes/ngon.wgsl -------------------------------------------------------------------------------- /src/render/shaders/shapes/rect.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/shaders/shapes/rect.wgsl -------------------------------------------------------------------------------- /src/render/shaders/shapes/tri.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/render/shaders/shapes/tri.wgsl -------------------------------------------------------------------------------- /src/shapes/disc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/shapes/disc.rs -------------------------------------------------------------------------------- /src/shapes/line.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/shapes/line.rs -------------------------------------------------------------------------------- /src/shapes/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/shapes/mod.rs -------------------------------------------------------------------------------- /src/shapes/rectangle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/shapes/rectangle.rs -------------------------------------------------------------------------------- /src/shapes/regular_polygon.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/shapes/regular_polygon.rs -------------------------------------------------------------------------------- /src/shapes/triangle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/james-j-obrien/bevy_vector_shapes/HEAD/src/shapes/triangle.rs --------------------------------------------------------------------------------