Struct gltf_json::extensions::material::Material
source · pub struct Material {
pub unlit: Option<Unlit>,
pub transmission: Option<Transmission>,
pub volume: Option<Volume>,
pub ior: Option<Ior>,
pub emissive_strength: Option<EmissiveStrength>,
pub others: Map<String, Value>,
}
Expand description
The material appearance of a primitive.
Fields§
§unlit: Option<Unlit>
§transmission: Option<Transmission>
§volume: Option<Volume>
§ior: Option<Ior>
§emissive_strength: Option<EmissiveStrength>
§others: Map<String, Value>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Material
impl<'de> Deserialize<'de> for Material
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 RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnwindSafe for Material
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