Struct gltf::material::PbrMetallicRoughness
[−]
[src]
pub struct PbrMetallicRoughness<'a> { /* fields omitted */ }
A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology.
Methods
impl<'a> PbrMetallicRoughness<'a>
[src]
fn as_json(&self) -> &PbrMetallicRoughness
Returns the internal JSON item.
fn base_color_factor(&self) -> [f32; 4]
The material's base color factor.
fn base_color_texture(&self) -> Option<Info<'a>>
The base color texture.
fn metallic_factor(&self) -> f32
The metalness of the material.
fn roughness_factor(&self) -> f32
The roughness of the material. * A value of 1.0 means the material is completely rough. * A value of 0.0 means the material is completely smooth.
fn metallic_roughness_texture(&self) -> Option<Info<'a>>
The metallic-roughness texture. This texture has two components: * The first component (R) contains the metallic-ness of the material. * The second component (G) contains the roughness of the material. * If the third component (B) and/or the fourth component (A) are present then they are ignored.
fn extras(&self) -> &Extras
Optional application specific data.