pub enum MaterialParam {
Value(f32),
Texture(AssetPath),
}Expand description
Either a constant scalar value or a reference to a texture channel.
Variants§
Value(f32)
Constant value in [0.0, 1.0].
Texture(AssetPath)
Path to a texture; the red channel is used.
Trait Implementations§
Source§impl Clone for MaterialParam
impl Clone for MaterialParam
Source§fn clone(&self) -> MaterialParam
fn clone(&self) -> MaterialParam
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 moreAuto Trait Implementations§
impl Freeze for MaterialParam
impl RefUnwindSafe for MaterialParam
impl Send for MaterialParam
impl Sync for MaterialParam
impl Unpin for MaterialParam
impl UnsafeUnpin for MaterialParam
impl UnwindSafe for MaterialParam
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