diff options
| author | Micha White <botahamec@outlook.com> | 2022-09-18 21:18:23 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-09-18 21:18:23 -0400 |
| commit | 2d2c88a704455f5dc3e14b557bd52eefcec14d2e (patch) | |
| tree | b53f409d6e7fb7387816640bc76c88ebe7f8364c /src/vertex.rs | |
| parent | cd7d74507fa54d026547b7dda9e1498a81a395b5 (diff) | |
Some optimization
Diffstat (limited to 'src/vertex.rs')
| -rw-r--r-- | src/vertex.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vertex.rs b/src/vertex.rs index 6514fd3..a24a601 100644 --- a/src/vertex.rs +++ b/src/vertex.rs @@ -3,11 +3,13 @@ use std::mem::size_of; use bytemuck::{Pod, Zeroable}; /// The vertices needed to form a square -pub const SQUARE: [Vertex; 4] = [ +pub const SQUARE: [Vertex; 6] = [ Vertex::new(-0.5, -0.5), Vertex::new(0.5, -0.5), Vertex::new(-0.5, 0.5), Vertex::new(0.5, 0.5), + Vertex::new(-0.5, 0.5), + Vertex::new(0.5, -0.5), ]; #[repr(C)] |
