Struct MeshStandardMaterialOptions
pub struct MeshStandardMaterialOptions {
pub opacity: f64,
pub transparent: bool,
pub depth_test: bool,
pub emissive: Option<[f64; 3]>,
pub flat_shading: bool,
pub metalness: f64,
pub roughness: f64,
pub wireframe: bool,
pub identifier: Option<String>,
}Expand description
Options for adding a mesh standard material.
Fields§
§opacity: f64The opacity of the material.
transparent: boolThe transparent flag of the material.
depth_test: boolThe depth test flag of the material.
emissive: Option<[f64; 3]>The emissive color (defaults to [0, 0, 0]).
flat_shading: boolThe flat shading flag of the material.
metalness: f64The metalness of the material.
roughness: f64The roughness of the material.
wireframe: boolThe wireframe flag of the material.
identifier: Option<String>The explicit identifier; assigned by the server when None.
Trait Implementations§
§impl Clone for MeshStandardMaterialOptions
impl Clone for MeshStandardMaterialOptions
§fn clone(&self) -> MeshStandardMaterialOptions
fn clone(&self) -> MeshStandardMaterialOptions
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 MeshStandardMaterialOptions
impl Debug for MeshStandardMaterialOptions
Auto Trait Implementations§
impl Freeze for MeshStandardMaterialOptions
impl RefUnwindSafe for MeshStandardMaterialOptions
impl Send for MeshStandardMaterialOptions
impl Sync for MeshStandardMaterialOptions
impl Unpin for MeshStandardMaterialOptions
impl UnwindSafe for MeshStandardMaterialOptions
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