Skip to content

Commit

Permalink
revert to 3d camera with positive Z transform
Browse files Browse the repository at this point in the history
  • Loading branch information
wilk10 committed Apr 3, 2021
1 parent 53fe08f commit c6171a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/shader/animate_shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ fn setup(
// Spawn a quad and insert the `TimeComponent`.
commands
.spawn_bundle(MeshBundle {
mesh: meshes.add(Mesh::from(shape::Quad {
size: Vec2::new(400.0, 400.0),
flip: false,
})),
mesh: meshes.add(Mesh::from(shape::Quad::new(Vec2::new(5.0, 5.0)))),
render_pipelines: RenderPipelines::from_pipelines(vec![RenderPipeline::new(
pipeline_handle,
)]),
Expand All @@ -112,7 +109,10 @@ fn setup(
.insert(TimeComponent { value: 0.0 });

// Spawn a camera.
commands.spawn_bundle(OrthographicCameraBundle::new_2d());
commands.spawn_bundle(PerspectiveCameraBundle {
transform: Transform::from_xyz(0.0, 0.0, 8.0).looking_at(Vec3::ZERO, Vec3::Y),
..Default::default()
});
}

/// In this system we query for the `TimeComponent` and global `Time` resource, and set `time.seconds_since_startup()`
Expand Down

0 comments on commit c6171a4

Please sign in to comment.