Struct gltf::material::PbrSpecularGlossiness [−][src]
pub struct PbrSpecularGlossiness<'a> { /* fields omitted */ }
KHR_materials_pbrSpecularGlossiness
only.Expand description
A set of parameter values that are used to define the specular-glossiness material model from Physically-Based Rendering (PBR) methodology.
Implementations
impl<'a> PbrSpecularGlossiness<'a>
[src]
impl<'a> PbrSpecularGlossiness<'a>
[src]pub fn diffuse_factor(&self) -> [f32; 4]
[src]
pub fn diffuse_factor(&self) -> [f32; 4]
[src]Returns the material’s base color factor.
The default value is [1.0, 1.0, 1.0, 1.0]
.
pub fn diffuse_texture(&self) -> Option<Info<'a>>
[src]
pub fn diffuse_texture(&self) -> Option<Info<'a>>
[src]Returns the base color texture.
pub fn specular_factor(&self) -> [f32; 3]
[src]
pub fn specular_factor(&self) -> [f32; 3]
[src]Returns the specular factor of the material.
The default value is [1.0, 1.0, 1.0]
.
pub fn glossiness_factor(&self) -> f32
[src]
pub fn glossiness_factor(&self) -> f32
[src]Returns the glossiness factor of the material.
A value of 1.0 means the material has full glossiness or is perfectly smooth. A value of 0.0 means the material has no glossiness or is completely rough. This value is linear.
The default value is 1.0
.
pub fn specular_glossiness_texture(&self) -> Option<Info<'a>>
[src]
pub fn specular_glossiness_texture(&self) -> Option<Info<'a>>
[src]The specular-glossiness texture.
A RGBA texture, containing the specular color of the material (RGB components) and its glossiness (A component). The color values are in sRGB space.
Auto Trait Implementations
impl<'a> RefUnwindSafe for PbrSpecularGlossiness<'a>
impl<'a> Send for PbrSpecularGlossiness<'a>
impl<'a> Sync for PbrSpecularGlossiness<'a>
impl<'a> Unpin for PbrSpecularGlossiness<'a>
impl<'a> UnwindSafe for PbrSpecularGlossiness<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T