1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::datatypes::Rgba32; use super::Material; impl Material { /// A new material using a given color multiplier. #[inline] pub fn from_albedo_factor(color: impl Into<Rgba32>) -> Self { Self { albedo_factor: Some(color.into()), } } }