Skip to content

Commit

Permalink
Fix normals example
Browse files Browse the repository at this point in the history
  • Loading branch information
asny committed May 22, 2022
1 parent 1203753 commit 9e3524f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/normals/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ pub async fn run() {

let mut instanced_model_with_computed_tangents = InstancedModel::new_with_material(
&context,
&Instances::default(),
&Instances {
translations: vec![Vec3::zero()],
..Default::default()
},
&cpu_meshes[0],
material.clone(),
)
Expand All @@ -52,7 +55,10 @@ pub async fn run() {

let mut instanced_model_with_loaded_tangents = InstancedModel::new_with_material(
&context,
&Instances::default(),
&Instances {
translations: vec![Vec3::zero()],
..Default::default()
},
&cpu_meshes[0],
material.clone(),
)
Expand Down

0 comments on commit 9e3524f

Please sign in to comment.