Struct rin::blender::scene_data::material::Material [−][src]
pub struct Material {}Show fields
pub name: String, pub albedo: Rgb<f32, LinearRgb>, pub specular: Rgb<f32, LinearRgb>, pub specular_tint: f32, pub emissive: Rgb<f32, LinearRgb>, pub subsurface: Option<Rgb<f32, LinearRgb>>, pub subsurface_blur: f32, pub subsurface_scale: f32, pub clearcoat_factor: f32, pub clearcoat_roughness: f32, pub alpha: f32, pub metallicness: f32, pub anisotropy: f32, pub anisotropic_rotation: f32, pub roughness: f32, pub normal_scale: f32, pub texture: Option<Image>, pub normal_map: Option<Image>, pub occlusion_map: Option<Image>, pub metallic_roughness_map: Option<Image>, pub metallic_map: Option<Image>, pub roughness_map: Option<Image>, pub emissive_map: Option<Image>, pub anisotropy_map: Option<Image>, pub subsurface_map: Option<Image>, pub texture_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, pub normal_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, pub occlusion_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, pub metallic_roughness_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, pub metallic_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, pub roughness_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, pub emissive_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, pub anisotropy_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, pub subsurface_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, pub doublesided: bool, pub ty: Type, pub custom_properties: Vec<Property, Global>, pub blend_mode: Option<BlendMode>, pub shadow_mode: Option<ShadowMode>,
Fields
name: String
albedo: Rgb<f32, LinearRgb>
specular: Rgb<f32, LinearRgb>
specular_tint: f32
emissive: Rgb<f32, LinearRgb>
subsurface: Option<Rgb<f32, LinearRgb>>
subsurface_blur: f32
subsurface_scale: f32
clearcoat_factor: f32
clearcoat_roughness: f32
alpha: f32
metallicness: f32
anisotropy: f32
anisotropic_rotation: f32
roughness: f32
normal_scale: f32
texture: Option<Image>
normal_map: Option<Image>
occlusion_map: Option<Image>
metallic_roughness_map: Option<Image>
metallic_map: Option<Image>
roughness_map: Option<Image>
emissive_map: Option<Image>
anisotropy_map: Option<Image>
subsurface_map: Option<Image>
texture_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>
normal_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>
occlusion_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>
metallic_roughness_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>
metallic_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>
roughness_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>
emissive_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>
anisotropy_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>
subsurface_map_matrix: Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>
doublesided: bool
ty: Type
custom_properties: Vec<Property, Global>
blend_mode: Option<BlendMode>
shadow_mode: Option<ShadowMode>
Trait Implementations
impl<'de> Deserialize<'de> for Material
[src]
impl<'de> Deserialize<'de> for Material
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Material, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Material, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for Material
[src]
impl Serialize for Material
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,