Skip to content

Commit

Permalink
fix wgpu_engine_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Aug 8, 2023
1 parent 67f471c commit b13103b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu_engine_demo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl State {
let mut meshes = vec![];

if let Ok(m) = load_mesh(gfx, "DamagedHelmet.glb") {
let mut i = InstancedMeshBuilder::new(m);
let mut i = InstancedMeshBuilder::<true>::new(m);
i.instances.push(MeshInstance {
pos: vec3(50.0, 00.0, 0.0),
dir: Vec3::X,
Expand All @@ -48,7 +48,7 @@ impl State {
None,
&gfx.palette(),
));
let mut i = InstancedMeshBuilder::new(c);
let mut i = InstancedMeshBuilder::<true>::new(c);
i.instances.push(MeshInstance {
pos: 2.3 * vec3(x as f32, 0.0, z as f32),
dir: Vec3::X,
Expand Down

0 comments on commit b13103b

Please sign in to comment.