Skip to content

Commit

Permalink
Fix issue #69 with JonahPlusPlus's solution (#70)
Browse files Browse the repository at this point in the history
Closes #69.
  • Loading branch information
VirxEC authored Apr 8, 2024
1 parent 6ff152b commit 5c20a5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ impl Plugin for AtmospherePipelinePlugin {
Render,
(
event_update_system::<AtmosphereUpdateEvent>.in_set(RenderSet::Prepare),
prepare_atmosphere_assets.in_set(RenderSet::PrepareAssets),
queue_atmosphere_bind_group.in_set(RenderSet::Queue),
prepare_atmosphere_resources.in_set(RenderSet::PrepareResources),
prepare_atmosphere_bind_group.in_set(RenderSet::PrepareBindGroups),
),
);

Expand Down Expand Up @@ -323,7 +323,7 @@ pub const ATMOSPHERE_IMAGE_TEXTURE_DESCRIPTOR: fn(u32) -> TextureDescriptor<'sta
};

/// Whenever settings changed, the texture view needs to be updated to use the new texture.
fn prepare_atmosphere_assets(
fn prepare_atmosphere_resources(
mut update_events: ResMut<Events<AtmosphereUpdateEvent>>,
mut atmosphere_image: ResMut<AtmosphereImage>,
gpu_images: Res<RenderAssets<Image>>,
Expand Down Expand Up @@ -356,7 +356,7 @@ fn prepare_atmosphere_assets(

/// Queue the generated bind groups for the compute pipeline.
#[allow(clippy::too_many_arguments)]
fn queue_atmosphere_bind_group(
fn prepare_atmosphere_bind_group(
mut commands: Commands,
mut cached_metadata: ResMut<CachedAtmosphereModelMetadata>,
gpu_images: Res<RenderAssets<Image>>,
Expand Down

0 comments on commit 5c20a5c

Please sign in to comment.