pub struct DiffuseLightingFilter {
pub surface_scale: f32,
pub diffuse_constant: f32,
pub kernel_unit_length: f32,
pub light_source: LightSource,
}Expand description
Diffuse lighting simulation.
Creates a lighting effect by treating the input’s alpha channel as a height map and calculating diffuse (matte) reflection from a light source.
Fields§
§surface_scale: f32Surface scale factor for converting alpha values to heights.
diffuse_constant: f32Diffuse reflection constant (kd). Controls lighting intensity.
kernel_unit_length: f32Kernel unit length for gradient calculations in user space.
light_source: LightSourceConfiguration of the light source (point, distant, or spot).
Trait Implementations§
Source§impl Clone for DiffuseLightingFilter
impl Clone for DiffuseLightingFilter
Source§fn clone(&self) -> DiffuseLightingFilter
fn clone(&self) -> DiffuseLightingFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiffuseLightingFilter
impl Debug for DiffuseLightingFilter
Source§impl PartialEq for DiffuseLightingFilter
impl PartialEq for DiffuseLightingFilter
impl StructuralPartialEq for DiffuseLightingFilter
Auto Trait Implementations§
impl Freeze for DiffuseLightingFilter
impl RefUnwindSafe for DiffuseLightingFilter
impl Send for DiffuseLightingFilter
impl Sync for DiffuseLightingFilter
impl Unpin for DiffuseLightingFilter
impl UnsafeUnpin for DiffuseLightingFilter
impl UnwindSafe for DiffuseLightingFilter
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