# Objective Wireframes are currently supported for 3D meshes using the `WireframePlugin` in `bevy_pbr`. This PR adds the same functionality for 2D meshes. Closes #5881. ## Solution Since there's no easy way to share material implementations between 2D, 3D, and UI, this is mostly a straight copy and rename from the original plugin into `bevy_sprite`. <img width="1392" alt="image" src="https://github.com/bevyengine/bevy/assets/3961616/7aca156f-448a-4c7e-89b8-0a72c5919769"> --- ## Changelog - Added `Wireframe2dPlugin` and related types to support 2D wireframes. - Added an example to demonstrate how to use 2D wireframes --------- Co-authored-by: IceSentry <IceSentry@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| color_material.rs | ||
| color_material.wgsl | ||
| material.rs | ||
| mesh2d_bindings.wgsl | ||
| mesh2d_functions.wgsl | ||
| mesh2d_types.wgsl | ||
| mesh2d_vertex_output.wgsl | ||
| mesh2d_view_bindings.wgsl | ||
| mesh2d_view_types.wgsl | ||
| mesh2d.wgsl | ||
| mesh.rs | ||
| mod.rs | ||
| wireframe2d.rs | ||
| wireframe2d.wgsl | ||