pub enum MtlColor {
Rgb(f32, f32, f32),
Xyz(f32, f32, f32),
Spectral(String, f32),
}
Expand description
A color specified in a .mtl
file
Variants§
Rgb(f32, f32, f32)
Color in the RGB color space
Xyz(f32, f32, f32)
Color in the CIEXYZ color space
Spectral(String, f32)
Color using a spectral curve
The first argument is the name of a .rfl
file specifying the curve.
The second argument is a multiplier for the values in the .rfl
file.
Trait Implementations§
impl StructuralPartialEq for MtlColor
Auto Trait Implementations§
impl Freeze for MtlColor
impl RefUnwindSafe for MtlColor
impl Send for MtlColor
impl Sync for MtlColor
impl Unpin for MtlColor
impl UnwindSafe for MtlColor
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