pub struct ModulateMaterial {
pub base_texture: String,
pub mod_2x: bool,
pub no_cull: bool,
}Fields§
§base_texture: StringMultiplies the color behind it with this surface’s texture.
mod_2x: boolDoubles the modulation, making it appear brighter. 1 enables this, 0 disables. Disabled by default.
no_cull: boolDisables backface culling.
Trait Implementations§
Source§impl Clone for ModulateMaterial
impl Clone for ModulateMaterial
Source§fn clone(&self) -> ModulateMaterial
fn clone(&self) -> ModulateMaterial
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 ModulateMaterial
impl Debug for ModulateMaterial
Source§impl<'de> Deserialize<'de> for ModulateMaterial
impl<'de> Deserialize<'de> for ModulateMaterial
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModulateMaterial
impl RefUnwindSafe for ModulateMaterial
impl Send for ModulateMaterial
impl Sync for ModulateMaterial
impl Unpin for ModulateMaterial
impl UnwindSafe for ModulateMaterial
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