From 9e3524f83478ad556c59dc58d81fae7bcd4c8e1d Mon Sep 17 00:00:00 2001 From: Asger Nyman Christiansen Date: Sun, 22 May 2022 08:20:00 +0200 Subject: [PATCH] Fix normals example --- examples/normals/src/main.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/normals/src/main.rs b/examples/normals/src/main.rs index 46891236e..9f1217fcb 100644 --- a/examples/normals/src/main.rs +++ b/examples/normals/src/main.rs @@ -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(), ) @@ -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(), )