#[derive(Debug, Clone, Copy, PartialEq)]
pub struct PbrMaterial {
pub albedo: [f32; 3],
pub roughness: f32,
pub metallic: f32,
}
impl PbrMaterial {
pub fn regolith() -> Self {
Self {
albedo: [0.42, 0.42, 0.40],
roughness: 0.96,
metallic: 0.0,
}
}
pub fn mare_basalt() -> Self {
Self {
albedo: [0.22, 0.22, 0.24],
roughness: 0.91,
metallic: 0.02,
}
}
pub fn polar_ice() -> Self {
Self {
albedo: [0.75, 0.80, 0.85],
roughness: 0.35,
metallic: 0.0,
}
}
}