Struct gltf_json::extensions::material::Ior
source · pub struct Ior {
pub ior: IndexOfRefraction,
pub extras: Extras,
}
Fields§
§ior: IndexOfRefraction
The index of refraction.
Typical values for the index of refraction range from 1 to 2. In rare cases values greater than 2 are possible. For example, the ior of water is 1.33, and diamond is 2.42
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Ior
impl<'de> Deserialize<'de> for Ior
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 Ior
impl Send for Ior
impl Sync for Ior
impl Unpin for Ior
impl UnwindSafe for Ior
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