Struct caper::posteffect::PostShaderOptions
[−]
[src]
pub struct PostShaderOptions { pub chrom_offset: f32, pub chrom_amt: f32, pub blur: bool, pub blur_amt: f32, pub blur_radius: f32, pub blur_weight: f32, pub bokeh: bool, pub bokeh_focal_depth: f32, pub bokeh_focal_width: f32, pub color_offset: (f32, f32, f32, f32), pub greyscale: bool, }
Contains all the options for the default post shader
Fields
chrom_offset: f32
The offset for the chromatic aberration
chrom_amt: f32
The mix amount for the chromatic aberration, if this is at 0.0 chromatic aberration is off
blur: bool
Whether blur is on
blur_amt: f32
The amount of blur
blur_radius: f32
The radius of the blur
blur_weight: f32
The weight of the blur
bokeh: bool
Whether bokeh is on
bokeh_focal_depth: f32
Bokeh focal depth
bokeh_focal_width: f32
Bokeh focal width
color_offset: (f32, f32, f32, f32)
Colour grading
greyscale: bool
Greyscale
Trait Implementations
impl Clone for PostShaderOptions
[src]
fn clone(&self) -> PostShaderOptions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for PostShaderOptions
[src]
fn eq(&self, __arg_0: &PostShaderOptions) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PostShaderOptions) -> bool
[src]
This method tests for !=
.