Skip to content

Commit

Permalink
Fix some typos in custom_post_processing.rs (bevyengine#15539)
Browse files Browse the repository at this point in the history
# Objective

- Fix some typos in the `custom_post_processing.rs` example

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
  • Loading branch information
2 people authored and robtfm committed Oct 4, 2024
1 parent 2581fcb commit 116c1bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/shader/custom_post_processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl FromWorld for PostProcessPipeline {

let pipeline_id = world
.resource_mut::<PipelineCache>()
// This will add the pipeline to the cache and queue it's creation
// This will add the pipeline to the cache and queue its creation
.queue_render_pipeline(RenderPipelineDescriptor {
label: Some("post_process_pipeline".into()),
layout: vec![layout.clone()],
Expand All @@ -282,7 +282,7 @@ impl FromWorld for PostProcessPipeline {
})],
}),
// All of the following properties are not important for this effect so just use the default values.
// This struct doesn't have the Default trait implemented because not all field can have a default value.
// This struct doesn't have the Default trait implemented because not all fields can have a default value.
primitive: PrimitiveState::default(),
depth_stencil: None,
multisample: MultisampleState::default(),
Expand Down Expand Up @@ -374,7 +374,7 @@ fn update_settings(mut settings: Query<&mut PostProcessSettings>, time: Res<Time
intensity *= 0.015;

// Set the intensity.
// This will then be extracted to the render world and uploaded to the gpu automatically by the [`UniformComponentPlugin`]
// This will then be extracted to the render world and uploaded to the GPU automatically by the [`UniformComponentPlugin`]
setting.intensity = intensity;
}
}

0 comments on commit 116c1bc

Please sign in to comment.