pub struct NormalTextureAsset {
pub texture: TextureAsset,
pub scale: f32,
}Expand description
A normal-map texture and the scalar applied to its X/Y components.
Keeping the scale beside the texture makes the glTF normal-texture state atomic: a scale cannot accidentally survive after its texture is removed.
Fields§
§texture: TextureAssetEmbedded encoded normal-map image.
scale: f32Scalar multiplier for the decoded tangent-space X/Y components.
Trait Implementations§
Source§impl Clone for NormalTextureAsset
impl Clone for NormalTextureAsset
Source§fn clone(&self) -> NormalTextureAsset
fn clone(&self) -> NormalTextureAsset
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 moreAuto Trait Implementations§
impl Freeze for NormalTextureAsset
impl RefUnwindSafe for NormalTextureAsset
impl Send for NormalTextureAsset
impl Sync for NormalTextureAsset
impl Unpin for NormalTextureAsset
impl UnsafeUnpin for NormalTextureAsset
impl UnwindSafe for NormalTextureAsset
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