diff --git a/src/components.rs b/src/components.rs index 932aac3..99bf946 100644 --- a/src/components.rs +++ b/src/components.rs @@ -10,7 +10,7 @@ use bevy::{ pub struct DitherPostProcessSettings(Handle); impl DitherPostProcessSettings { - pub fn new(level: u32, mut images: ResMut>) -> Self { + pub fn new(level: u32,images: &mut ResMut>) -> Self { let power = level + 1; let map_size: u32 = 1 << power; let mut buffer = Vec::::new(); diff --git a/src/lib.rs b/src/lib.rs index fdf3fa8..430e5d9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,8 @@ use bevy::{prelude::*, render::{RenderApp, render_graph::{RenderGraphApp, ViewNo use crate::components::DitherPostProcessSettings; +pub use nodes::DitherRenderLabel; + pub struct DitherPostProcessPlugin; pub mod components;