From 2dba9554ea29dcbd4a84d42006e080ee5bec9502 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 6 Sep 2023 13:02:48 -0700 Subject: [PATCH] draw teapot --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 09b37b6..377eddc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -214,8 +214,10 @@ impl strafe_client::framework::Example for Skybox { let mut modeldatas = Vec::::new(); add_obj(device,& mut modeldatas,include_bytes!("../models/teslacyberv3.0.obj")); add_obj(device,& mut modeldatas,include_bytes!("../models/suzanne.obj")); + add_obj(device,& mut modeldatas,include_bytes!("../models/teapot.obj")); println!("models.len = {:?}", modeldatas.len()); modeldatas[1].transform=glam::Affine3A::from_translation(glam::vec3(10.,5.,10.)); + modeldatas[2].transform=glam::Affine3A::from_translation(glam::vec3(-10.,5.,10.)); let main_bind_group_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { label: None,