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]
impl<'a> PbrMetallicRoughness<'a>
pub fn base_color_factor(&self) -> [f32; 4]
[src]
pub fn base_color_factor(&self) -> [f32; 4]
Returns the material's base color factor.
The default value is [1.0, 1.0, 1.0, 1.0]
.
pub fn base_color_texture(&self) -> Option<Info<'a>>
[src]
pub fn base_color_texture(&self) -> Option<Info<'a>>
Returns the base color texture.
pub fn metallic_factor(&self) -> f32
[src]
pub fn metallic_factor(&self) -> f32
Returns the metalness factor of the material.
The default value is 1.0
.
pub fn roughness_factor(&self) -> f32
[src]
pub fn roughness_factor(&self) -> f32
Returns the roughness factor 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 default value is 1.0
.
pub fn metallic_roughness_texture(&self) -> Option<Info<'a>>
[src]
pub fn metallic_roughness_texture(&self) -> Option<Info<'a>>
The metallic-roughness texture.
The metalness values are sampled from the B channel. The roughness values are sampled from the G channel. These values are linear. If other channels are present (R or A), they are ignored for metallic-roughness calculations.
pub fn extras(&self) -> &Extras
[src]
pub fn extras(&self) -> &Extras
Optional application specific data.
Auto Trait Implementations
impl<'a> Send for PbrMetallicRoughness<'a>
impl<'a> Send for PbrMetallicRoughness<'a>
impl<'a> Sync for PbrMetallicRoughness<'a>
impl<'a> Sync for PbrMetallicRoughness<'a>