pub enum NormalTexture {
None,
Tricomponent(TextureHandle, NormalTextureYDirection),
Bicomponent(TextureHandle, NormalTextureYDirection),
BicomponentSwizzled(TextureHandle, NormalTextureYDirection),
}
Expand description
How normals should be derived
Variants§
None
No normal texture.
Tricomponent(TextureHandle, NormalTextureYDirection)
Normal stored in RGB values.
Bicomponent(TextureHandle, NormalTextureYDirection)
Normal stored in RG values, third value should be reconstructed.
BicomponentSwizzled(TextureHandle, NormalTextureYDirection)
Normal stored in Green and Alpha values, third value should be reconstructed. This is useful for storing in BC3 or BC7 compressed textures.
Implementations§
Source§impl NormalTexture
impl NormalTexture
pub fn to_texture(&self) -> Option<&TextureHandle>
pub fn to_flags(&self) -> MaterialFlags
Trait Implementations§
Source§impl Clone for NormalTexture
impl Clone for NormalTexture
Source§fn clone(&self) -> NormalTexture
fn clone(&self) -> NormalTexture
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NormalTexture
impl Debug for NormalTexture
Auto Trait Implementations§
impl Freeze for NormalTexture
impl RefUnwindSafe for NormalTexture
impl Send for NormalTexture
impl Sync for NormalTexture
impl Unpin for NormalTexture
impl UnwindSafe for NormalTexture
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