pub enum ClearcoatTextures {
GltfCombined {
texture: Option<TextureHandle>,
},
GltfSplit {
clearcoat_texture: Option<TextureHandle>,
clearcoat_roughness_texture: Option<TextureHandle>,
},
BWSplit {
clearcoat_texture: Option<TextureHandle>,
clearcoat_roughness_texture: Option<TextureHandle>,
},
None,
}
Expand description
How clearcoat values should be derived.
Variants§
GltfCombined
Fields
§
texture: Option<TextureHandle>
Texture with Clearcoat in R, and Clearcoat Roughness in G
GltfSplit
Fields
§
clearcoat_texture: Option<TextureHandle>
Texture with Clearcoat in R
§
clearcoat_roughness_texture: Option<TextureHandle>
Texture with Clearcoat Roughness in G
BWSplit
Fields
§
clearcoat_texture: Option<TextureHandle>
Texture with Clearcoat in R
§
clearcoat_roughness_texture: Option<TextureHandle>
Texture with Clearcoat Roughness in R
None
Implementations§
Source§impl ClearcoatTextures
impl ClearcoatTextures
pub fn to_clearcoat_texture(&self) -> Option<&TextureHandle>
pub fn to_clearcoat_roughness_texture(&self) -> Option<&TextureHandle>
pub fn to_flags(&self) -> MaterialFlags
Trait Implementations§
Source§impl Clone for ClearcoatTextures
impl Clone for ClearcoatTextures
Source§fn clone(&self) -> ClearcoatTextures
fn clone(&self) -> ClearcoatTextures
Returns a copy 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 ClearcoatTextures
impl Debug for ClearcoatTextures
Auto Trait Implementations§
impl Freeze for ClearcoatTextures
impl RefUnwindSafe for ClearcoatTextures
impl Send for ClearcoatTextures
impl Sync for ClearcoatTextures
impl Unpin for ClearcoatTextures
impl UnwindSafe for ClearcoatTextures
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