Skip to content

Commit

Permalink
Merge pull request #54 from ForesightMiningSoftwareCorporation/cleanu…
Browse files Browse the repository at this point in the history
…p-examples

Clean up examples
  • Loading branch information
IceSentry authored Apr 11, 2024
2 parents f2b421d + a724608 commit 46ca111
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions examples/linestrip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,19 @@ fn setup(
..Default::default()
});

// circular base
commands.spawn(PbrBundle {
mesh: meshes.add(Mesh::from(shape::Plane::from_size(5.0))),
material: standard_materials.add(Color::rgb(0.3, 0.5, 0.3).into()),
transform: Transform::from_xyz(0.0, -0.5, 0.0),
..Default::default()
mesh: meshes.add(shape::Circle::new(4.0).into()),
material: standard_materials.add(Color::WHITE.into()),
transform: Transform::from_rotation(Quat::from_rotation_x(-std::f32::consts::FRAC_PI_2))
.with_translation(Vec3::new(0.0, -0.5, 0.0)),
..default()
});

// cube
commands.spawn(PbrBundle {
mesh: meshes.add(Mesh::from(shape::Cube { size: 1.0 })),
material: standard_materials.add(Color::rgb(0.8, 0.7, 0.6).into()),
..Default::default()
mesh: meshes.add(shape::Cube { size: 1.0 }.into()),
material: standard_materials.add(Color::rgb_u8(124, 144, 255).into()),
..default()
});

// light
Expand Down

0 comments on commit 46ca111

Please sign in to comment.