Fix normals example
@@ -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(),
)
