pub struct GlowNode {
pub threshold: f32,
pub radius: f32,
pub intensity: f32,
/* private fields */
}Expand description
Three-pass GPU bloom / glow effect.
Pass 0: extract pixels whose luma is >= threshold (others become black).
Pass 1: Gaussian-blur the extracted highlights (sigma = radius).
Pass 2: additive blend of original + blurred highlights weighted by intensity.
Fields§
§threshold: f32Luminance threshold, clamped to [0.0, 1.0]; pixels below it are
suppressed before the glow blur.
radius: f32Gaussian blur sigma in pixels for the glow spread (shares the blur node’s
[0.5, 20.0] effective range).
intensity: f32Additive blend weight of the glow layer (0.0 = no glow / identity).
Implementations§
Trait Implementations§
Source§impl RenderNode for GlowNode
Available on crate feature wgpu only.
impl RenderNode for GlowNode
Available on crate feature
wgpu only.Source§fn pass_count(&self) -> usize
fn pass_count(&self) -> usize
Number of render passes (default: 1). Multi-pass nodes (e.g. gaussian
blur) return 2 or more.
Source§fn process(
&self,
inputs: &[&Texture],
outputs: &[&Texture],
ctx: &RenderContext,
)
fn process( &self, inputs: &[&Texture], outputs: &[&Texture], ctx: &RenderContext, )
Run the GPU render pass. Read more
Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
Number of input textures required by this node (default: 1).
Auto Trait Implementations§
impl !Freeze for GlowNode
impl !RefUnwindSafe for GlowNode
impl !UnwindSafe for GlowNode
impl Send for GlowNode
impl Sync for GlowNode
impl Unpin for GlowNode
impl UnsafeUnpin for GlowNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more