From c6171a404e671cb23b0a5b4d15380dc3835782c8 Mon Sep 17 00:00:00 2001 From: Anselmo Sampietro Date: Sat, 3 Apr 2021 18:38:16 +0200 Subject: [PATCH] revert to 3d camera with positive Z transform --- examples/shader/animate_shader.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/shader/animate_shader.rs b/examples/shader/animate_shader.rs index b394324428bfc..92780f8f0107a 100644 --- a/examples/shader/animate_shader.rs +++ b/examples/shader/animate_shader.rs @@ -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, )]), @@ -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()`