pub struct GltfMaterialExtensionData { /* private fields */ }Expand description
Extracted KHR_materials_anisotropy and KHR_materials_iridescence PBR extension parameters for a glTF 2.0 material.
Implementations§
Source§impl GltfMaterialExtensionData
Implements impl #impl_generics #name #ty_generics #where_clause.
impl GltfMaterialExtensionData
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_name(&self) -> &String
pub fn get_mut_name(&mut self) -> &mut String
pub fn set_name(&mut self, val: String) -> &mut Self
pub fn get_anisotropy_strength(&self) -> f32
pub fn get_mut_anisotropy_strength(&mut self) -> &mut f32
pub fn set_anisotropy_strength(&mut self, val: f32) -> &mut Self
pub fn get_anisotropy_rotation(&self) -> f32
pub fn get_mut_anisotropy_rotation(&mut self) -> &mut f32
pub fn set_anisotropy_rotation(&mut self, val: f32) -> &mut Self
pub fn get_anisotropy_texture(&self) -> Option<TextureSlot3D>
pub fn try_get_anisotropy_texture(&self) -> Option<TextureSlot3D>
pub fn get_mut_anisotropy_texture(&mut self) -> &mut Option<TextureSlot3D>
pub fn set_anisotropy_texture( &mut self, val: Option<TextureSlot3D>, ) -> &mut Self
pub fn get_iridescence_factor(&self) -> f32
pub fn get_mut_iridescence_factor(&mut self) -> &mut f32
pub fn set_iridescence_factor(&mut self, val: f32) -> &mut Self
pub fn get_iridescence_ior(&self) -> f32
pub fn get_mut_iridescence_ior(&mut self) -> &mut f32
pub fn set_iridescence_ior(&mut self, val: f32) -> &mut Self
pub fn get_iridescence_thickness_min(&self) -> f32
pub fn get_mut_iridescence_thickness_min(&mut self) -> &mut f32
pub fn set_iridescence_thickness_min(&mut self, val: f32) -> &mut Self
pub fn get_iridescence_thickness_max(&self) -> f32
pub fn get_mut_iridescence_thickness_max(&mut self) -> &mut f32
pub fn set_iridescence_thickness_max(&mut self, val: f32) -> &mut Self
pub fn get_iridescence_texture(&self) -> Option<TextureSlot3D>
pub fn try_get_iridescence_texture(&self) -> Option<TextureSlot3D>
pub fn get_mut_iridescence_texture(&mut self) -> &mut Option<TextureSlot3D>
pub fn set_iridescence_texture( &mut self, val: Option<TextureSlot3D>, ) -> &mut Self
pub fn get_iridescence_thickness_texture(&self) -> Option<TextureSlot3D>
pub fn try_get_iridescence_thickness_texture(&self) -> Option<TextureSlot3D>
pub fn get_mut_iridescence_thickness_texture( &mut self, ) -> &mut Option<TextureSlot3D>
pub fn set_iridescence_thickness_texture( &mut self, val: Option<TextureSlot3D>, ) -> &mut Self
Trait Implementations§
Source§impl Clone for GltfMaterialExtensionData
impl Clone for GltfMaterialExtensionData
Source§impl Debug for GltfMaterialExtensionData
impl Debug for GltfMaterialExtensionData
Source§impl Default for GltfMaterialExtensionData
impl Default for GltfMaterialExtensionData
impl StructuralPartialEq for GltfMaterialExtensionData
Auto Trait Implementations§
impl Forget for GltfMaterialExtensionData
impl Freeze for GltfMaterialExtensionData
impl Move for GltfMaterialExtensionData
impl RefUnwindSafe for GltfMaterialExtensionData
impl Send for GltfMaterialExtensionDatawhere
RawVecInner: Send,
impl Sync for GltfMaterialExtensionDatawhere
RawVecInner: Sync,
impl Unpin for GltfMaterialExtensionData
impl UnsafeUnpin for GltfMaterialExtensionData
impl UnwindSafe for GltfMaterialExtensionDatawhere
RawVecInner: UnwindSafe,
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