pub struct ColorWheelsNode {
pub shadows_lift: [f32; 3],
pub midtones_gamma: [f32; 3],
pub highlights_gain: [f32; 3],
/* private fields */
}Expand description
Three-way colour corrector: shadows / midtones / highlights lift, gamma, gain.
Each adjustment is weighted by a luminance region so it acts on its tonal
range: shadows_lift (additive) on dark pixels, midtones_gamma on mid
pixels, highlights_gain (multiplicative) on bright pixels.
Fields§
§shadows_lift: [f32; 3]Shadows lift: additive offset per RGB channel (typ. [-1, 1]).
midtones_gamma: [f32; 3]Midtones gamma: exponent per RGB channel (typ. [0.1, 10.0]; 1.0 = no-op).
highlights_gain: [f32; 3]Highlights gain: multiplier per RGB channel (typ. [0.0, 4.0]; 1.0 = no-op).
Implementations§
Trait Implementations§
Source§impl Default for ColorWheelsNode
impl Default for ColorWheelsNode
Source§impl RenderNode for ColorWheelsNode
Available on crate feature wgpu only.
impl RenderNode for ColorWheelsNode
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 ColorWheelsNode
impl RenderNodeCpu for ColorWheelsNode
Auto Trait Implementations§
impl !Freeze for ColorWheelsNode
impl !RefUnwindSafe for ColorWheelsNode
impl !UnwindSafe for ColorWheelsNode
impl Send for ColorWheelsNode
impl Sync for ColorWheelsNode
impl Unpin for ColorWheelsNode
impl UnsafeUnpin for ColorWheelsNode
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