pub enum AoMRTextures {
None,
Combined {
texture: Option<TextureHandle>,
},
SwizzledSplit {
ao_texture: Option<TextureHandle>,
mr_texture: Option<TextureHandle>,
},
Split {
ao_texture: Option<TextureHandle>,
mr_texture: Option<TextureHandle>,
},
BWSplit {
ao_texture: Option<TextureHandle>,
m_texture: Option<TextureHandle>,
r_texture: Option<TextureHandle>,
},
}
Expand description
How the Ambient Occlusion, Metalic, and Roughness values should be determined.
Variants§
None
Combined
Fields
§
texture: Option<TextureHandle>
Texture with Ambient Occlusion in R, Roughness in G, and Metallic in B
SwizzledSplit
Fields
§
ao_texture: Option<TextureHandle>
Texture with Ambient Occlusion in R
§
mr_texture: Option<TextureHandle>
Texture with Roughness in G and Metallic in B
Split
Fields
§
ao_texture: Option<TextureHandle>
Texture with Ambient Occlusion in R
§
mr_texture: Option<TextureHandle>
Texture with Roughness in R and Metallic in G
BWSplit
Fields
§
ao_texture: Option<TextureHandle>
Texture with Ambient Occlusion in R
§
m_texture: Option<TextureHandle>
Texture with Metallic in R
§
r_texture: Option<TextureHandle>
Texture with Roughness in R
Implementations§
Source§impl AoMRTextures
impl AoMRTextures
pub fn to_roughness_texture(&self) -> Option<&TextureHandle>
pub fn to_metallic_texture(&self) -> Option<&TextureHandle>
pub fn to_ao_texture(&self) -> Option<&TextureHandle>
pub fn to_flags(&self) -> MaterialFlags
Trait Implementations§
Source§impl Clone for AoMRTextures
impl Clone for AoMRTextures
Source§fn clone(&self) -> AoMRTextures
fn clone(&self) -> AoMRTextures
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 AoMRTextures
impl Debug for AoMRTextures
Auto Trait Implementations§
impl Freeze for AoMRTextures
impl RefUnwindSafe for AoMRTextures
impl Send for AoMRTextures
impl Sync for AoMRTextures
impl Unpin for AoMRTextures
impl UnwindSafe for AoMRTextures
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