Skip to content

Commit

Permalink
Configure mesh instead of scale
Browse files Browse the repository at this point in the history
As it was originally done.
  • Loading branch information
Shatur committed Feb 23, 2024
1 parent 9a5b397 commit 8e0ea12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/splitscreen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ fn setup(
) {
// Plane
commands.spawn(PbrBundle {
transform: Transform::from_scale(Vec3::splat(100.0)),
mesh: meshes.add(Plane3d::default()),
mesh: meshes.add(Plane3d::new(Vec3::Y).mesh().size(100.0, 100.0)),
material: materials.add(Color::rgb(0.3, 0.5, 0.3)),
..default()
});
Expand Down

0 comments on commit 8e0ea12

Please sign in to comment.