pub struct Specular<'a> { /* private fields */ }
Available on crate feature
KHR_materials_specular
only.Expand description
Parameter values that define the strength and colour of the specular reflection of the material
Implementations§
source§impl<'a> Specular<'a>
impl<'a> Specular<'a>
sourcepub fn specular_factor(&self) -> f32
pub fn specular_factor(&self) -> f32
The strength of the specular reflection.
sourcepub fn specular_texture(&self) -> Option<Info<'a>>
pub fn specular_texture(&self) -> Option<Info<'a>>
A texture that defines the strength of the specular reflection,
stored in the alpha (A
) channel. This will be multiplied by
specular_factor
.
sourcepub fn specular_color_factor(&self) -> [f32; 3]
pub fn specular_color_factor(&self) -> [f32; 3]
The F0 color of the specular reflection (linear RGB).
sourcepub fn specular_color_texture(&self) -> Option<Info<'a>>
pub fn specular_color_texture(&self) -> Option<Info<'a>>
A texture that defines the F0 color of the specular reflection,
stored in the RGB
channels and encoded in sRGB. This texture
will be multiplied by specular_color_factor
.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Specular<'a>
impl<'a> Send for Specular<'a>
impl<'a> Sync for Specular<'a>
impl<'a> Unpin for Specular<'a>
impl<'a> UnwindSafe for Specular<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more