pub struct PbrMaterial { /* private fields */ }Expand description
Physically based metallic-roughness material parameters for 3D surfaces.
Implementations§
Source§impl PbrMaterial
Material presets and fluent builders for metallic conductors, dielectrics, architectural glass, and neon signage.
impl PbrMaterial
Material presets and fluent builders for metallic conductors, dielectrics, architectural glass, and neon signage.
Sourcepub fn dielectric(color: Color, roughness: f32) -> Self
pub fn dielectric(color: Color, roughness: f32) -> Self
Sourcepub fn with_emissive(self, emissive: Vec3) -> Self
pub fn with_emissive(self, emissive: Vec3) -> Self
Sourcepub fn with_roughness(self, roughness: f32) -> Self
pub fn with_roughness(self, roughness: f32) -> Self
Sourcepub fn with_metallic(self, metallic: f32) -> Self
pub fn with_metallic(self, metallic: f32) -> Self
Sourcepub fn with_reflectivity(self, reflectivity: f32) -> Self
pub fn with_reflectivity(self, reflectivity: f32) -> Self
Sourcepub fn with_surface_detail(self, mode: SurfaceDetailMode) -> Self
pub fn with_surface_detail(self, mode: SurfaceDetailMode) -> Self
Source§impl PbrMaterial
impl PbrMaterial
pub fn get_base_color(&self) -> Vec3
pub fn get_mut_base_color(&mut self) -> &mut Vec3
pub fn set_base_color(&mut self, val: Vec3) -> &mut Self
pub fn get_metallic(&self) -> f32
pub fn get_mut_metallic(&mut self) -> &mut f32
pub fn set_metallic(&mut self, val: f32) -> &mut Self
pub fn get_roughness(&self) -> f32
pub fn get_mut_roughness(&mut self) -> &mut f32
pub fn set_roughness(&mut self, val: f32) -> &mut Self
pub fn get_emissive(&self) -> Vec3
pub fn get_mut_emissive(&mut self) -> &mut Vec3
pub fn set_emissive(&mut self, val: Vec3) -> &mut Self
pub fn get_reflectivity(&self) -> f32
pub fn get_mut_reflectivity(&mut self) -> &mut f32
pub fn set_reflectivity(&mut self, val: f32) -> &mut Self
pub fn get_surface_detail(&self) -> SurfaceDetailMode
pub fn get_mut_surface_detail(&mut self) -> &mut SurfaceDetailMode
pub fn set_surface_detail(&mut self, val: SurfaceDetailMode) -> &mut Self
Trait Implementations§
Source§impl Clone for PbrMaterial
impl Clone for PbrMaterial
impl Copy for PbrMaterial
Source§impl Debug for PbrMaterial
impl Debug for PbrMaterial
Source§impl Default for PbrMaterial
Default neutral matte PBR material.
impl Default for PbrMaterial
Default neutral matte PBR material.
Source§impl PartialEq for PbrMaterial
impl PartialEq for PbrMaterial
impl StructuralPartialEq for PbrMaterial
Auto Trait Implementations§
impl Forget for PbrMaterial
impl Freeze for PbrMaterial
impl Move for PbrMaterial
impl RefUnwindSafe for PbrMaterial
impl Send for PbrMaterial
impl Sync for PbrMaterial
impl Unpin for PbrMaterial
impl UnsafeUnpin for PbrMaterial
impl UnwindSafe for PbrMaterial
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