pub struct ShadingParams {
pub ambient: f32,
pub diffuse: f32,
pub specular: f32,
pub specular_power: f32,
}Expand description
Phong shading parameters used in composite and isosurface modes.
Gradient-magnitude based shading matches VTK’s vtkVolumeProperty::ShadeOn.
Fields§
§ambient: f32Ambient term (0–1).
diffuse: f32Diffuse term (0–1).
specular: f32Specular term (0–1).
specular_power: f32Specular power (shininess, e.g. 10–100).
Trait Implementations§
Source§impl Clone for ShadingParams
impl Clone for ShadingParams
Source§fn clone(&self) -> ShadingParams
fn clone(&self) -> ShadingParams
Returns a duplicate of the value. Read more
1.0.0 · 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 ShadingParams
impl Debug for ShadingParams
Source§impl Default for ShadingParams
impl Default for ShadingParams
Source§impl PartialEq for ShadingParams
impl PartialEq for ShadingParams
impl Copy for ShadingParams
impl StructuralPartialEq for ShadingParams
Auto Trait Implementations§
impl Freeze for ShadingParams
impl RefUnwindSafe for ShadingParams
impl Send for ShadingParams
impl Sync for ShadingParams
impl Unpin for ShadingParams
impl UnsafeUnpin for ShadingParams
impl UnwindSafe for ShadingParams
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