Skip to content

Commit 7792070

Browse files
authored
Merge pull request #2 from cart/bloom-tweaks
Resolve Bloom Clippy
2 parents 4584aa3 + 1fd95b8 commit 7792070

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

crates/bevy_pbr/src/bloom/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl Plugin for BloomPlugin {
8888
// TODO: Write better documentation.
8989
/// Applies a bloom effect to an HDR-enabled Camera3d.
9090
///
91-
/// See also https://en.wikipedia.org/wiki/Bloom_(shader_effect).
91+
/// See also <https://en.wikipedia.org/wiki/Bloom_(shader_effect)>.
9292
#[derive(Component, Clone)]
9393
pub struct BloomSettings {
9494
/// Threshold for bloom to apply.
@@ -187,7 +187,7 @@ impl Node for BloomNode {
187187
depth_stencil_attachment: None,
188188
},
189189
));
190-
pre_filter_pass.set_render_pipeline(&down_sampling_pre_filter_pipeline);
190+
pre_filter_pass.set_render_pipeline(down_sampling_pre_filter_pipeline);
191191
pre_filter_pass.set_bind_group(
192192
0,
193193
&bind_groups.pre_filter_bind_group,
@@ -213,7 +213,7 @@ impl Node for BloomNode {
213213
depth_stencil_attachment: None,
214214
},
215215
));
216-
down_sampling_pass.set_render_pipeline(&down_sampling_pipeline);
216+
down_sampling_pass.set_render_pipeline(down_sampling_pipeline);
217217
down_sampling_pass.set_bind_group(
218218
0,
219219
&bind_groups.down_sampling_bind_groups[mip as usize - 1],
@@ -239,7 +239,7 @@ impl Node for BloomNode {
239239
depth_stencil_attachment: None,
240240
},
241241
));
242-
up_sampling_pass.set_render_pipeline(&up_sampling_pipeline);
242+
up_sampling_pass.set_render_pipeline(up_sampling_pipeline);
243243
up_sampling_pass.set_bind_group(
244244
0,
245245
&bind_groups.up_sampling_bind_groups[mip as usize - 1],
@@ -265,7 +265,7 @@ impl Node for BloomNode {
265265
depth_stencil_attachment: None,
266266
},
267267
));
268-
up_sampling_final_pass.set_render_pipeline(&up_sampling_final_pipeline);
268+
up_sampling_final_pass.set_render_pipeline(up_sampling_final_pipeline);
269269
up_sampling_final_pass.set_bind_group(
270270
0,
271271
&bind_groups.up_sampling_final_bind_group,

examples/3d/bloom.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ struct Bouncing;
7676
fn bounce(time: Res<Time>, mut query: Query<&mut Transform, With<Bouncing>>) {
7777
for mut transform in query.iter_mut() {
7878
transform.translation.y =
79-
(transform.translation.x + transform.translation.z + time.elapsed_seconds() as f32)
80-
.sin();
79+
(transform.translation.x + transform.translation.z + time.elapsed_seconds()).sin();
8180
}
8281
}

0 commit comments

Comments
 (0)