pub struct VignetteNode {
pub radius: f32,
pub strength: f32,
pub feather: f32,
/* private fields */
}Expand description
Position-based radial vignette: darkens toward the corners with a smooth
falloff. A pixel’s output depends only on its own colour and its normalised
distance from the centre, so the centre is left unmodified and strength = 0
is a no-op.
Fields§
§radius: f32Normalised distance from the centre where darkening begins (0.0 – 1.0; a corner is ~1.0).
strength: f32Maximum darkening applied at the corners (0.0 = no vignette; 1.0 = to black at full falloff).
feather: f32Width of the falloff band past radius (0.0 = hard edge).
Implementations§
Trait Implementations§
Source§impl RenderNode for VignetteNode
Available on crate feature wgpu only.
impl RenderNode for VignetteNode
Available on crate feature
wgpu only.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).
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§impl RenderNodeCpu for VignetteNode
impl RenderNodeCpu for VignetteNode
Auto Trait Implementations§
impl !Freeze for VignetteNode
impl !RefUnwindSafe for VignetteNode
impl !UnwindSafe for VignetteNode
impl Send for VignetteNode
impl Sync for VignetteNode
impl Unpin for VignetteNode
impl UnsafeUnpin for VignetteNode
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