pub struct ColorGradeNode {
pub brightness: f32,
pub contrast: f32,
pub saturation: f32,
pub temperature: f32,
pub tint: f32,
/* private fields */
}Expand description
Basic colour grading: brightness, contrast, saturation, temperature, tint.
§Processing order
brightness → contrast → temperature/tint → saturation
Fields§
§brightness: f32Additive brightness offset (−1.0 – +1.0; 0.0 = no change).
contrast: f32Contrast multiplier around 0.5 (0.0 – 4.0; 1.0 = no change).
saturation: f32Saturation multiplier (0.0 = greyscale; 1.0 = no change; 2.0 = double).
temperature: f32Colour temperature offset (−1.0 = cool/blue; +1.0 = warm/orange).
tint: f32Tint offset (−1.0 = magenta; +1.0 = green).
Implementations§
Trait Implementations§
Source§impl Default for ColorGradeNode
impl Default for ColorGradeNode
Source§impl RenderNode for ColorGradeNode
Available on crate feature wgpu only.
impl RenderNode for ColorGradeNode
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 ColorGradeNode
impl RenderNodeCpu for ColorGradeNode
Auto Trait Implementations§
impl !Freeze for ColorGradeNode
impl !RefUnwindSafe for ColorGradeNode
impl !UnwindSafe for ColorGradeNode
impl Send for ColorGradeNode
impl Sync for ColorGradeNode
impl Unpin for ColorGradeNode
impl UnsafeUnpin for ColorGradeNode
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