clipping
This commit is contained in:
13
src/main.rs
13
src/main.rs
@@ -168,19 +168,10 @@ fn main() {
|
||||
|
||||
// == // Set up your VAO around here
|
||||
|
||||
let vertices: Vec<f32> = (-3..2)
|
||||
.flat_map(|i| {
|
||||
let a = 0.2 * i as f32;
|
||||
vec![-0.1 + a, -0.1, 0., 0.1 + a, -0.1, 0., 0. + a, 0.1, 0.]
|
||||
})
|
||||
.collect();
|
||||
|
||||
let indices: Vec<u32> = (0..vertices.len() as u32).collect();
|
||||
let vertices = vec![0.6, -0.8, -1.2, 0., 0.4, 0., -0.8, -0.2, 1.2];
|
||||
let indices = vec![0, 1, 2];
|
||||
let my_vao = unsafe { create_vao(&vertices, &indices) };
|
||||
|
||||
println!("created vao!");
|
||||
// let my_vao = unsafe { 1337 };
|
||||
|
||||
// == // Set up your shaders here
|
||||
|
||||
// Basic usage of shader helper:
|
||||
|
||||
Reference in New Issue
Block a user