pub enum FbxTextureSlot {
Diffuse,
Normal,
Emissive,
Specular,
Roughness,
Metallic,
Ambient,
}Available on crate features
fbx-reader or fbx-writer only.Expand description
Texture slot targeted by an FbxTextureBinding.
These are the FBX property names commonly used to link a texture to a
material property. The mapping follows the conventions used by the FBX SDK
and Blender’s io_scene_fbx.
Variants§
Diffuse
DiffuseColor / DiffuseColor texture link.
Normal
NormalMap texture link.
Emissive
EmissiveColor texture link.
Specular
SpecularColor texture link.
Roughness
Shininess / roughness texture link.
Metallic
ReflectionFactor / metallic texture link.
Ambient
AmbientColor texture link.
Implementations§
Source§impl FbxTextureSlot
impl FbxTextureSlot
Sourcepub fn property_name(self) -> &'static str
pub fn property_name(self) -> &'static str
Returns the FBX property name used to wire a texture to a material.
Sourcepub fn from_property_name(name: &str) -> Option<Self>
pub fn from_property_name(name: &str) -> Option<Self>
Parses the FBX connection property name into a slot, if recognized.
Trait Implementations§
Source§impl Clone for FbxTextureSlot
impl Clone for FbxTextureSlot
Source§fn clone(&self) -> FbxTextureSlot
fn clone(&self) -> FbxTextureSlot
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 moreimpl Copy for FbxTextureSlot
Source§impl Debug for FbxTextureSlot
impl Debug for FbxTextureSlot
impl Eq for FbxTextureSlot
Source§impl PartialEq for FbxTextureSlot
impl PartialEq for FbxTextureSlot
impl StructuralPartialEq for FbxTextureSlot
Auto Trait Implementations§
impl Freeze for FbxTextureSlot
impl RefUnwindSafe for FbxTextureSlot
impl Send for FbxTextureSlot
impl Sync for FbxTextureSlot
impl Unpin for FbxTextureSlot
impl UnsafeUnpin for FbxTextureSlot
impl UnwindSafe for FbxTextureSlot
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