1
2
3
4
5
6
7
8
9
10
11
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(crate::datatypes::Material::from_albedo_factor(color))
    }
}