Struct kgltf::MaterialPbrMetallicRoughness[][src]

pub struct MaterialPbrMetallicRoughness {
    pub base_color_factor: Option<[f32; 4]>,
    pub base_color_texture: Option<TextureInfo>,
    pub metallic_factor: Option<f32>,
    pub roughness_factor: Option<f32>,
    pub metallic_roughness_texture: Option<TextureInfo>,
    pub extensions: Option<Extension>,
}

A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology. When not specified, all the default values of pbrMetallicRoughness apply.

Fields

base_color_factor: Option<[f32; 4]>

The material’s base color factor.

base_color_texture: Option<TextureInfo>

The base color texture.

metallic_factor: Option<f32>

The metalness of the material.

roughness_factor: Option<f32>

The roughness of the material.

metallic_roughness_texture: Option<TextureInfo>

The metallic-roughness texture.

extensions: Option<Extension>

Dictionary object with extension-specific objects.

Trait Implementations

impl Clone for MaterialPbrMetallicRoughness[src]

impl Debug for MaterialPbrMetallicRoughness[src]

impl<'a> Deserialize<'a> for MaterialPbrMetallicRoughness[src]

impl Serialize for MaterialPbrMetallicRoughness[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<'a, T> FromJson<'a> for T where
    T: Deserialize<'a>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToJson for T where
    T: Serialize
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.