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]

Constructs a PbrMetallicRoughness.

Returns the internal JSON item.

The material's base color factor.

The base color texture.

The metalness of the material.

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.

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.

Optional application specific data.