pub struct Pbr {
pub base_color_factor: [f64; 4],
pub base_color_texture: Option<TextureInfo>,
pub metallic_factor: f64,
pub roughness_factor: f64,
pub metallic_roughness_texture: Option<TextureInfo>,
}Fields§
§base_color_factor: [f64; 4]§base_color_texture: Option<TextureInfo>§metallic_factor: f64§roughness_factor: f64§metallic_roughness_texture: Option<TextureInfo>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pbr
impl<'de> Deserialize<'de> for Pbr
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 Pbr
impl RefUnwindSafe for Pbr
impl Send for Pbr
impl Sync for Pbr
impl Unpin for Pbr
impl UnwindSafe for Pbr
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