pub struct FbxMaterial {Show 15 fields
pub name: Option<String>,
pub shading_model: Option<String>,
pub diffuse: Option<[f32; 3]>,
pub specular: Option<[f32; 3]>,
pub emissive: Option<[f32; 3]>,
pub ambient: Option<[f32; 3]>,
pub diffuse_factor: Option<f32>,
pub specular_factor: Option<f32>,
pub shininess: Option<f32>,
pub emissive_factor: Option<f32>,
pub reflection_factor: Option<f32>,
pub transparency_factor: Option<f32>,
pub opacity: Option<f32>,
pub bump_factor: Option<f32>,
pub textures: Vec<FbxTextureBinding>,
}Available on crate features
fbx-reader or fbx-writer only.Expand description
Material object extracted from an FBX Material node.
Covers the canonical KFbxSurfacePhong / KFbxSurfaceLambert property
set. Colors are linear RGB triples; scalar factors are unit-less.
Fields§
§name: Option<String>Name supplied by the FBX material node, when available.
shading_model: Option<String>ShadingModel ("Phong", "Lambert", or empty for PBR/unknown).
diffuse: Option<[f32; 3]>DiffuseColor.
specular: Option<[f32; 3]>SpecularColor.
emissive: Option<[f32; 3]>EmissiveColor.
ambient: Option<[f32; 3]>AmbientColor.
diffuse_factor: Option<f32>DiffuseFactor.
specular_factor: Option<f32>SpecularFactor.
shininess: Option<f32>Shininess (Phong exponent).
emissive_factor: Option<f32>EmissiveFactor.
reflection_factor: Option<f32>ReflectionFactor (≈ metallic).
transparency_factor: Option<f32>TransparencyFactor (1 = fully transparent).
opacity: Option<f32>Opacity (1 = fully opaque; alternate form of TransparencyFactor).
bump_factor: Option<f32>BumpFactor.
textures: Vec<FbxTextureBinding>Texture links, indexed into FbxScene::textures.
Trait Implementations§
Source§impl Clone for FbxMaterial
impl Clone for FbxMaterial
Source§fn clone(&self) -> FbxMaterial
fn clone(&self) -> FbxMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FbxMaterial
impl Debug for FbxMaterial
Source§impl Default for FbxMaterial
impl Default for FbxMaterial
Source§fn default() -> FbxMaterial
fn default() -> FbxMaterial
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FbxMaterial
impl RefUnwindSafe for FbxMaterial
impl Send for FbxMaterial
impl Sync for FbxMaterial
impl Unpin for FbxMaterial
impl UnsafeUnpin for FbxMaterial
impl UnwindSafe for FbxMaterial
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