[−][src]Struct blender_mesh::PrincipledBSDF
Material data for a mesh
Blender
When exporting from Blender we read this data from the first Principled BSDF node in the node editor for the material
https://docs.blender.org/manual/en/latest/render/cycles/nodes/types/shaders/principled.html
Implementations
impl PrincipledBSDF[src]
pub fn base_color(&self) -> &MaterialInput<[f32; 3], String>[src]
The base_color of the material.
https://docs.blender.org/api/blender2.8/bpy.types.Material.html#bpy.types.Material.diffuse_color
pub fn roughness(&self) -> &MaterialInput<f32, (String, Channel)>[src]
The roughness of the material.
https://docs.blender.org/api/blender2.8/bpy.types.Material.html#bpy.types.Material.roughness
pub fn metallic(&self) -> &MaterialInput<f32, (String, Channel)>[src]
How metallic the material is. Most materials should be 0.0 or 1.0.
https://docs.blender.org/api/blender2.8/bpy.types.Material.html#bpy.types.Material.metallic
pub fn normal_map(&self) -> Option<&String>[src]
The normal map
Trait Implementations
impl Clone for PrincipledBSDF[src]
fn clone(&self) -> PrincipledBSDF[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for PrincipledBSDF[src]
impl Default for PrincipledBSDF[src]
fn default() -> PrincipledBSDF[src]
impl<'de> Deserialize<'de> for PrincipledBSDF[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<PrincipledBSDF> for PrincipledBSDF[src]
fn eq(&self, other: &PrincipledBSDF) -> bool[src]
fn ne(&self, other: &PrincipledBSDF) -> bool[src]
impl Serialize for PrincipledBSDF[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for PrincipledBSDF[src]
Auto Trait Implementations
impl RefUnwindSafe for PrincipledBSDF
impl Send for PrincipledBSDF
impl Sync for PrincipledBSDF
impl Unpin for PrincipledBSDF
impl UnwindSafe for PrincipledBSDF
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,