bevy/crates/bevy_gizmos/src
Lynn 35cec8bd3a
Add Grid gizmos (#11988)
# Objective

- Implement grid gizmos, suggestion of #9400 

## Solution

- Added `gizmos.grid(...) ` and `gizmos.grid_2d(...)`
- The grids may be configured using `.outer_edges(...)` to specify
whether to draw the outer border/edges of the grid and `.skew(...)`to
specify the skew of the grid along the x or y directions.

---

## Changelog

- Added a `grid` module to `bevy_gizmos` containing `gizmos.grid(...) `
and `gizmos.grid_2d(...)` as well as assorted items.
- Updated the `2d_gizmos` and `3d_gizmos` examples to use grids.

## Additional

The 2D and 3D examples now look like this:
<img width="1440" alt="Screenshot 2024-02-20 at 15 09 40"
src="https://github.com/bevyengine/bevy/assets/62256001/ce04191e-d839-4faf-a6e3-49b6bb4b922b">
<img width="1440" alt="Screenshot 2024-02-20 at 15 10 07"
src="https://github.com/bevyengine/bevy/assets/62256001/317459ba-d452-42eb-ae95-7c84cdbd569b">
2024-02-28 00:18:26 +00:00
..
primitives Add Direction3dA and move direction types out of primitives (#12018) 2024-02-26 13:57:49 +00:00
aabb.rs Rename bevy_render::Color to LegacyColor (#12069) 2024-02-24 21:35:32 +00:00
arcs.rs Rename bevy_render::Color to LegacyColor (#12069) 2024-02-24 21:35:32 +00:00
arrows.rs Rename bevy_render::Color to LegacyColor (#12069) 2024-02-24 21:35:32 +00:00
circles.rs Add Direction3dA and move direction types out of primitives (#12018) 2024-02-26 13:57:49 +00:00
config.rs Reflect GizmoConfigStore (#12104) 2024-02-25 01:57:44 +00:00
gizmos.rs Use LinearRgba in bevy_gizmos internals (#12128) 2024-02-26 23:50:33 +00:00
grid.rs Add Grid gizmos (#11988) 2024-02-28 00:18:26 +00:00
lib.rs Add Grid gizmos (#11988) 2024-02-28 00:18:26 +00:00
lines.wgsl Fix float precision issue in the gizmo shader (#10408) 2023-11-14 22:36:02 +00:00
pipeline_2d.rs Multiple Configurations for Gizmos (#10342) 2024-01-18 15:52:50 +00:00
pipeline_3d.rs Multiple Configurations for Gizmos (#10342) 2024-01-18 15:52:50 +00:00