Skip to content

Commit 382b8e4

Browse files
authored
Resolve camera synchronization jitter (#15)
* Resolve camera synchronization jitter * Fix clippy: remove unnecessary qualification
1 parent e44caa1 commit 382b8e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ impl Plugin for CloudsPlugin {
4040
app.insert_resource(CloudsConfig::default())
4141
.add_plugins((CloudsComputePlugin, CloudsShaderPlugin))
4242
.add_systems(Startup, (clouds_setup, setup_daylight))
43-
.add_systems(Update, (update_skybox_transform, update_camera_matrices));
43+
.add_systems(
44+
PostUpdate,
45+
(update_skybox_transform, update_camera_matrices)
46+
.after(TransformSystems::Propagate),
47+
);
4448
#[cfg(feature = "debug")]
4549
app.add_systems(EguiPrimaryContextPass, ui_system);
4650
}

0 commit comments

Comments
 (0)