Struct rustracer::material::CheckeredPigment
source · pub struct CheckeredPigment {
pub color1: Color,
pub color2: Color,
pub steps: u32,
}
Expand description
A checkered pigment.
The number of rows/columns in the checkered pattern is tunable,
but you cannot have a different number of repetitions along the u/v directions.
Fields§
§color1: Color
First Color
.
color2: Color
Second Color
.
steps: u32
Number of steps.
Trait Implementations§
source§impl Clone for CheckeredPigment
impl Clone for CheckeredPigment
source§fn clone(&self) -> CheckeredPigment
fn clone(&self) -> CheckeredPigment
Returns a copy 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 CheckeredPigment
impl Debug for CheckeredPigment
impl Copy for CheckeredPigment
Auto Trait Implementations§
impl RefUnwindSafe for CheckeredPigment
impl Send for CheckeredPigment
impl Sync for CheckeredPigment
impl Unpin for CheckeredPigment
impl UnwindSafe for CheckeredPigment
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