pub struct NormalTextureInfo {
pub texture: TextureInfo,
pub scale: f32,
}Expand description
A normal map reference and its scale multiplier.
Fields§
§texture: TextureInfoThe referenced normal-map texture, UV set, and transform.
scale: f32Multiplier applied to the tangent-space X and Y components.
Implementations§
Source§impl NormalTextureInfo
impl NormalTextureInfo
Sourcepub const fn new(texture: TextureInfo) -> Self
pub const fn new(texture: TextureInfo) -> Self
Creates a normal-map reference with the glTF default scale of one.
Sourcepub const fn with_scale(self, scale: f32) -> Self
pub const fn with_scale(self, scale: f32) -> Self
Sets the normal-map scale multiplier.
Trait Implementations§
Source§impl Clone for NormalTextureInfo
impl Clone for NormalTextureInfo
impl Copy for NormalTextureInfo
Source§impl Debug for NormalTextureInfo
impl Debug for NormalTextureInfo
Source§impl PartialEq for NormalTextureInfo
impl PartialEq for NormalTextureInfo
impl StructuralPartialEq for NormalTextureInfo
Auto Trait Implementations§
impl Freeze for NormalTextureInfo
impl RefUnwindSafe for NormalTextureInfo
impl Send for NormalTextureInfo
impl Sync for NormalTextureInfo
impl Unpin for NormalTextureInfo
impl UnsafeUnpin for NormalTextureInfo
impl UnwindSafe for NormalTextureInfo
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