pub struct GltfTextureInfo {
pub index: TextureIndex,
pub tex_coord: usize,
pub scale: f32,
pub strength: f32,
}Expand description
A type representing a Gltf Texture Info, which is instantiated in different ways for different aspects of a material, and which refers to a Texture (and TexCoord number)
Fields§
§index: TextureIndexOptional name of the texture
tex_coord: usizeImage index (source)
scale: f32Scale - for normal textures only
strength: f32Strength - for occlusion textures only
Implementations§
Source§impl GltfTextureInfo
impl GltfTextureInfo
pub fn index(&self) -> TextureIndex
Trait Implementations§
Source§impl Debug for GltfTextureInfo
impl Debug for GltfTextureInfo
Source§impl Default for GltfTextureInfo
impl Default for GltfTextureInfo
Source§fn default() -> GltfTextureInfo
fn default() -> GltfTextureInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GltfTextureInfowhere
GltfTextureInfo: Default,
impl<'de> Deserialize<'de> for GltfTextureInfowhere
GltfTextureInfo: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GltfTextureInfo
impl RefUnwindSafe for GltfTextureInfo
impl Send for GltfTextureInfo
impl Sync for GltfTextureInfo
impl Unpin for GltfTextureInfo
impl UnwindSafe for GltfTextureInfo
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