summaryrefslogtreecommitdiff
path: root/src/vertex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/vertex.rs')
-rw-r--r--src/vertex.rs4
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)]