Struct rust_pathtracer::material::Material
source · pub struct Material {Show 20 fields
pub base_color: PTF3,
pub anisotropic: PTF,
pub emission: PTF3,
pub metallic: PTF,
pub roughness: PTF,
pub subsurface: PTF,
pub specular_tint: PTF,
pub sheen: PTF,
pub sheen_tint: PTF,
pub clearcoat: PTF,
pub clearcoat_gloss: PTF,
pub clearcoat_roughness: PTF,
pub spec_trans: PTF,
pub ior: PTF,
pub opacity: PTF,
pub alpha_mode: AlphaMode,
pub alpha_cutoff: PTF,
pub ax: PTF,
pub ay: PTF,
pub medium: Medium,
}Expand description
The material struct holds all BSDF properties as well as the Medium.
Fields§
§base_color: PTF3§anisotropic: PTF§emission: PTF3§metallic: PTF§roughness: PTF§subsurface: PTF§specular_tint: PTF§sheen: PTF§sheen_tint: PTF§clearcoat: PTF§clearcoat_gloss: PTF§clearcoat_roughness: PTFDo not use clearcoat_roughness directly, it is for internal use only. Use clearcoat_gloss.
spec_trans: PTF§ior: PTF§opacity: PTF§alpha_mode: AlphaMode§alpha_cutoff: PTF§ax: PTF§ay: PTF§medium: MediumImplementations§
Trait Implementations§
source§impl PartialEq<Material> for Material
impl PartialEq<Material> for Material
impl StructuralPartialEq for Material
Auto Trait Implementations§
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnwindSafe for Material
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.