Struct MeshStandardMaterial
pub struct MeshStandardMaterial { /* private fields */ }Expand description
Write-access helper for a mesh standard material.
Implementations§
Methods from Deref<Target = MaterialWithTransparency>§
pub fn transparency(&self, value: f64) -> Result<Instruction>
pub fn transparency(&self, value: f64) -> Result<Instruction>
Writes the transparency property.
Returns Error::Value if value is not between 0.0 and 1.0.
Methods from Deref<Target = MaterialHelper>§
pub fn depth_test(&self, value: bool) -> Instruction
pub fn depth_test(&self, value: bool) -> Instruction
Writes the depth test property.
Trait Implementations§
§impl Clone for MeshStandardMaterial
impl Clone for MeshStandardMaterial
§fn clone(&self) -> MeshStandardMaterial
fn clone(&self) -> MeshStandardMaterial
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 more§impl Debug for MeshStandardMaterial
impl Debug for MeshStandardMaterial
§impl Deref for MeshStandardMaterial
impl Deref for MeshStandardMaterial
Auto Trait Implementations§
impl Freeze for MeshStandardMaterial
impl RefUnwindSafe for MeshStandardMaterial
impl Send for MeshStandardMaterial
impl Sync for MeshStandardMaterial
impl Unpin for MeshStandardMaterial
impl UnwindSafe for MeshStandardMaterial
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