struct
PhysicalMaterial
pub struct PhysicalMaterial {
pub metallic: f32,
pub roughness: f32,
pub emissive: Color,
pub emissive_intensity: f32,
pub opacity: f32,
pub env_intensity: f32,
pub map: Option<TextureRef>,
pub roughness_map: Option<TextureRef>,
pub metallic_map: Option<TextureRef>,
pub normal_map: Option<TextureRef>,
pub normal_scale: f32,
pub occlusion_map: Option<TextureRef>,
pub occlusion_strength: f32,
pub emissive_map: Option<TextureRef>,
}The physically based material: Cook-Torrance (GGX) shading with a metallic-roughness workflow. The base colour (albedo) is the object's colour, times map.
Fields
roughness_map
pub roughness_map: Option<TextureRef>Roughness from the green channel (glTF's layout), times roughness.