Fix some typos in custom_post_processing.rs (#15539)
# Objective - Fix some typos in the `custom_post_processing.rs` example Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
This commit is contained in:
parent
56f8e526dd
commit
66717b04d3
@ -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()],
|
||||
@ -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(),
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user